authsource = $authsource; $this->reason = $reason; parent::__construct( [ ErrorCodes::AUTHSOURCEERROR, '%AUTHSOURCE%' => $this->authsource, '%REASON%' => $this->reason, ], $cause, ); $this->message = "Error with authentication source '$authsource': $reason"; } /** * Retrieve the authsource module name from where this error was thrown. * * @return string Authsource module name. */ public function getAuthSource(): string { return $this->authsource; } /** * Retrieve the reason why the request was invalid. * * @return string The reason why the request was invalid. */ public function getReason(): string { return $this->reason; } }