ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($status, $subStatus=null, $statusMessage=null, Exception $cause=null) | |
Create a SAML 2 error. More... | |
getStatus () | |
Get the top-level status code. More... | |
getSubStatus () | |
Get the second-level status code. More... | |
getStatusMessage () | |
Get the status message. More... | |
toException () | |
Create a normal exception from a SAML2 error. More... | |
Public Member Functions inherited from SimpleSAML_Error_Exception | |
__construct ($message, $code=0, Exception $cause=null) | |
Constructor for this error. More... | |
getBacktrace () | |
Retrieve the backtrace. More... | |
getCause () | |
Retrieve the cause of this exception. More... | |
getClass () | |
Retrieve the class of this exception. More... | |
format ($anonymize=false) | |
Format this exception for logging. More... | |
formatBacktrace ($anonymize=false) | |
Format the backtrace for logging. More... | |
log ($default_level) | |
Print the exception to the log, by default with log level error. More... | |
logError () | |
Print the exception to the log with log level error. More... | |
logWarning () | |
Print the exception to the log with log level warning. More... | |
logInfo () | |
Print the exception to the log with log level info. More... | |
logDebug () | |
Print the exception to the log with log level debug. More... | |
__sleep () | |
Function for serialization. More... | |
Static Public Member Functions | |
static | fromException (Exception $exception) |
Create a SAML2 error from an exception. More... | |
Static Public Member Functions inherited from SimpleSAML_Error_Exception | |
static | fromException (Exception $e) |
Convert any exception into a SimpleSAML_Error_Exception. More... | |
Static Private Member Functions | |
static | shortStatus ($status) |
Create a short version of the status code. More... | |
Private Attributes | |
$status | |
$subStatus | |
$statusMessage | |
Additional Inherited Members | |
Protected Member Functions inherited from SimpleSAML_Error_Exception | |
initBacktrace (Exception $exception) | |
Load the backtrace from the given exception. More... | |
logBacktrace ($level=\SimpleSAML\Logger::DEBUG) | |
Print the backtrace to the log if the 'debug' option is enabled in the configuration. More... | |
sspmod_saml_Error::__construct | ( | $status, | |
$subStatus = null , |
|||
$statusMessage = null , |
|||
Exception | $cause = null |
||
) |
Create a SAML 2 error.
string | $status | The top-level status code. |
string | null | $subStatus | The second-level status code. Can be NULL, in which case there is no second-level status code. |
string | null | $statusMessage | The status message. Can be NULL, in which case there is no status message. |
Exception | null | $cause | The cause of this exception. Can be NULL. |
Definition at line 40 of file Error.php.
References SimpleSAML_Error_Exception\$cause, $status, $statusMessage, and $subStatus.
|
static |
Create a SAML2 error from an exception.
This function attempts to create a SAML2 error with the appropriate status codes from an arbitrary exception.
Exception | $exception | The original exception. |
Definition at line 103 of file Error.php.
References SAML2\Constants\STATUS_NO_PASSIVE, SAML2\Constants\STATUS_PROXY_COUNT_EXCEEDED, and SAML2\Constants\STATUS_RESPONDER.
Referenced by sspmod_saml_IdP_SAML2\handleAuthError().
sspmod_saml_Error::getStatus | ( | ) |
sspmod_saml_Error::getStatusMessage | ( | ) |
Get the status message.
Definition at line 88 of file Error.php.
References $statusMessage.
sspmod_saml_Error::getSubStatus | ( | ) |
Get the second-level status code.
Definition at line 77 of file Error.php.
References $subStatus.
|
staticprivate |
sspmod_saml_Error::toException | ( | ) |
Create a normal exception from a SAML2 error.
This function attempts to reverse the operation of the fromException() function. If it is unable to create a more specific exception, it will return the current object.
Definition at line 149 of file Error.php.
|
private |
Definition at line 15 of file Error.php.
Referenced by __construct(), getStatus(), and shortStatus().
|
private |
Definition at line 29 of file Error.php.
Referenced by __construct(), and getStatusMessage().
|
private |
Definition at line 22 of file Error.php.
Referenced by __construct(), and getSubStatus().