|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Inheritance diagram for sspmod_saml_Error:
Collaboration diagram for sspmod_saml_Error: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 | 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 42 of file Error.php.
References SimpleSAML_Error_Exception\$cause, $status, $statusMessage, $subStatus, and shortStatus().
Here is the call graph for this function:
|
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. |
Reimplemented from SimpleSAML_Error_Exception.
Definition at line 101 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().
Here is the caller graph for this function:| sspmod_saml_Error::getStatus | ( | ) |
| sspmod_saml_Error::getStatusMessage | ( | ) |
Get the status message.
Definition at line 87 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 |
Create a short version of the status code.
Remove the 'urn:oasis:names:tc:SAML:2.0:status:'-prefix of status codes if it is present.
| string | $status | The status code. |
Definition at line 184 of file Error.php.
Referenced by __construct().
Here is the caller graph for this function:| 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 147 of file Error.php.
References $statusMessage.
|
private |
Definition at line 15 of file Error.php.
Referenced by __construct(), getStatus(), and shortStatus().
|
private |
Definition at line 31 of file Error.php.
Referenced by __construct(), getStatusMessage(), and toException().
|
private |
Definition at line 23 of file Error.php.
Referenced by __construct(), and getSubStatus().