30 assert(
'is_string($authsource)');
31 assert(
'is_string($reason)');
38 '%AUTHSOURCE%' => htmlspecialchars(var_export($this->authsource, TRUE)),
39 '%REASON%' => htmlspecialchars(var_export($this->reason, TRUE))
44 $this->message =
"Error with authentication source '$authsource': $reason";
An exception for terminatinating execution or to throw for unit testing.
getReason()
Retrieve the reason why the request was invalid.
$authsource
Authsource module name.
$reason
Reason why this request was invalid.
__construct($authsource, $reason, $cause=NULL)
Create a new AuthSource error.
getAuthSource()
Retrieve the authsource module name from where this error was thrown.