setDetailedErrorMessage($sMessage); parent::__construct( (oxNew(WebauthnErrors::class))->translateError($sMessage, $this->getRequestType()), $iCode, $previous ); } /** * @return string|null */ public function getRequestType(): ?string { return null; } /** * @return null|string */ public function getDetailedErrorMessage(): ?string { return $this->detailedErrorMessage; } /** * @param string|null $detailedErrorMessage */ public function setDetailedErrorMessage(string $detailedErrorMessage = null): void { $this->detailedErrorMessage = 'Webauthn: '.$detailedErrorMessage; } }