|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for SimpleSAML_Error_Error:
Collaboration diagram for SimpleSAML_Error_Error:Public Member Functions | |
| __construct ($errorCode, Exception $cause=null, $httpCode=null) | |
| Constructor for this error. More... | |
| getErrorCode () | |
| Retrieve the error code given when throwing this error. More... | |
| getParameters () | |
| Retrieve the error parameters given when throwing this error. More... | |
| getDictTitle () | |
| Retrieve the error title tag in dictionary. More... | |
| getDictDescr () | |
| Retrieve the error description tag in dictionary. More... | |
| show () | |
| Display this 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... | |
Protected Member Functions | |
| setHTTPCode () | |
| Set the HTTP return code for this error. More... | |
| saveError () | |
| Save an error report. More... | |
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... | |
Protected Attributes | |
| $httpCode = 500 | |
| $includeTemplate = null | |
Private Attributes | |
| $errorCode | |
| $dictTitle | |
| $dictDescr | |
| $module = null | |
| $parameters | |
Additional Inherited Members | |
Static Public Member Functions inherited from SimpleSAML_Error_Exception | |
| static | fromException (Exception $e) |
| Convert any exception into a SimpleSAML_Error_Exception. More... | |
| SimpleSAML_Error_Error::__construct | ( | $errorCode, | |
| Exception | $cause = null, |
||
$httpCode = null |
|||
| ) |
Constructor for this error.
The error can either be given as a string, or as an array. If it is an array, the first element in the array (with index 0), is the error code, while the other elements are replacements for the error text.
| mixed | $errorCode | One of the error codes defined in the errors dictionary. |
| Exception | $cause | The exception which caused this fatal error (if any). Optional. |
| int | null | $httpCode | The HTTP response code to use. Optional. |
Definition at line 71 of file Error.php.
References SimpleSAML_Error_Exception\$cause, $errorCode, $httpCode, SimpleSAML\Error\ErrorCodes\getErrorCodeDescription(), and SimpleSAML\Error\ErrorCodes\getErrorCodeTitle().
Here is the call graph for this function:| SimpleSAML_Error_Error::getDictDescr | ( | ) |
Retrieve the error description tag in dictionary.
Definition at line 153 of file Error.php.
References $dictDescr.
| SimpleSAML_Error_Error::getDictTitle | ( | ) |
Retrieve the error title tag in dictionary.
Definition at line 142 of file Error.php.
References $dictTitle.
| SimpleSAML_Error_Error::getErrorCode | ( | ) |
Retrieve the error code given when throwing this error.
Definition at line 120 of file Error.php.
References $errorCode.
Referenced by sspmod_authYubiKey_Auth_Source_YubiKey\handleLogin().
Here is the caller graph for this function:| SimpleSAML_Error_Error::getParameters | ( | ) |
Retrieve the error parameters given when throwing this error.
Definition at line 131 of file Error.php.
References $parameters.
|
protected |
Save an error report.
Definition at line 198 of file Error.php.
References $_SERVER, $config, $data, $reportId, $session, SimpleSAML\Logger\error(), SimpleSAML_Error_Exception\format(), SimpleSAML_Configuration\getInstance(), and SimpleSAML_Session\getSessionFromRequest().
Referenced by show().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Set the HTTP return code for this error.
This should be overridden by subclasses who want a different return code than 500 Internal Server Error.
Definition at line 164 of file Error.php.
References $httpCode, and SimpleSAML\Logger\warning().
Referenced by show().
Here is the call graph for this function:
Here is the caller graph for this function:| SimpleSAML_Error_Error::show | ( | ) |
Display this error.
This method displays a standard SimpleSAMLphp error page and exits.
Definition at line 240 of file Error.php.
References $attributes, $authority, $config, $data, $dictDescr, $dictTitle, $errorCode, $includeTemplate, $module, $parameters, $session, $t, exit, SimpleSAML\Utils\HTTP\getBaseURL(), SimpleSAML_Configuration\getInstance(), SimpleSAML_Session\getSessionFromRequest(), SimpleSAML_Error_Exception\logError(), saveError(), and setHTTPCode().
Here is the call graph for this function:
|
private |
Definition at line 38 of file Error.php.
Referenced by getDictDescr(), and show().
|
private |
Definition at line 31 of file Error.php.
Referenced by getDictTitle(), and show().
|
private |
Definition at line 17 of file Error.php.
Referenced by __construct(), getErrorCode(), and show().
|
protected |
Definition at line 24 of file Error.php.
Referenced by __construct(), and setHTTPCode().
|
protected |
|
private |
|
private |
Definition at line 52 of file Error.php.
Referenced by getParameters(), and show().