ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 80 of file Error.php.
References SimpleSAML_Error_Exception\$cause, $errorCode, $httpCode, array, SimpleSAML\Error\ErrorCodes\getErrorCodeDescription(), and SimpleSAML\Error\ErrorCodes\getErrorCodeTitle().
SimpleSAML_Error_Error::getDictDescr | ( | ) |
Retrieve the error description tag in dictionary.
Definition at line 162 of file Error.php.
References $dictDescr.
SimpleSAML_Error_Error::getDictTitle | ( | ) |
Retrieve the error title tag in dictionary.
Definition at line 151 of file Error.php.
References $dictTitle.
SimpleSAML_Error_Error::getErrorCode | ( | ) |
Retrieve the error code given when throwing this error.
Definition at line 129 of file Error.php.
References $errorCode.
Referenced by sspmod_authYubiKey_Auth_Source_YubiKey\handleLogin().
SimpleSAML_Error_Error::getParameters | ( | ) |
Retrieve the error parameters given when throwing this error.
Definition at line 140 of file Error.php.
References $parameters.
|
protected |
Save an error report.
Definition at line 207 of file Error.php.
References $_SERVER, $config, $data, $reportId, $session, array, SimpleSAML\Logger\error(), SimpleSAML_Error_Exception\format(), SimpleSAML_Configuration\getInstance(), SimpleSAML\Utils\HTTP\getSelfURLNoQuery(), and SimpleSAML_Session\getSessionFromRequest().
Referenced by show().
|
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 173 of file Error.php.
References $httpCode, array, header, and SimpleSAML\Logger\warning().
Referenced by show().
SimpleSAML_Error_Error::show | ( | ) |
Display this error.
This method displays a standard SimpleSAMLphp error page and exits.
Definition at line 249 of file Error.php.
References $attributes, $authority, $baseurl, $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().
|
private |
Definition at line 43 of file Error.php.
Referenced by getDictDescr(), and show().
|
private |
Definition at line 35 of file Error.php.
Referenced by getDictTitle(), and show().
|
private |
Definition at line 19 of file Error.php.
Referenced by __construct(), getErrorCode(), and show().
|
protected |
Definition at line 27 of file Error.php.
Referenced by __construct(), and setHTTPCode().
|
protected |
|
private |
|
private |
Definition at line 59 of file Error.php.
Referenced by getParameters(), and show().