ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__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 $e) |
Convert any exception into a SimpleSAML_Error_Exception. More... | |
Protected Member Functions | |
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... | |
Private Attributes | |
$backtrace | |
$cause | |
Definition at line 12 of file Exception.php.
SimpleSAML_Error_Exception::__construct | ( | $message, | |
$code = 0 , |
|||
Exception | $cause = null |
||
) |
Constructor for this error.
Note that the cause will be converted to a SimpleSAML_Error_UnserializableException unless it is a subclass of SimpleSAML_Error_Exception.
string | $message | Exception message |
int | $code | Error code |
Exception | null | $cause | The cause of this exception. |
Definition at line 44 of file Exception.php.
References $cause, $code, $message, fromException(), and initBacktrace().
SimpleSAML_Error_Exception::__sleep | ( | ) |
Function for serialization.
This function builds a list of all variables which should be serialized. It will serialize all variables except the Exception::trace variable.
Definition at line 303 of file Exception.php.
SimpleSAML_Error_Exception::format | ( | $anonymize = false | ) |
Format this exception for logging.
Create an array of lines for logging.
boolean | $anonymize | Whether the resulting messages should be anonymized or not. |
Definition at line 150 of file Exception.php.
References $ret, formatBacktrace(), and getClass().
Referenced by SimpleSAML_Error_Error\saveError().
SimpleSAML_Error_Exception::formatBacktrace | ( | $anonymize = false | ) |
Format the backtrace for logging.
Create an array of lines for logging from the backtrace.
boolean | $anonymize | Whether the resulting messages should be anonymized or not. |
Definition at line 168 of file Exception.php.
References $i, $ret, and SimpleSAML_Configuration\getInstance().
Referenced by format(), and logBacktrace().
|
static |
Convert any exception into a SimpleSAML_Error_Exception.
Exception | $e | The exception. |
Definition at line 66 of file Exception.php.
Referenced by __construct().
SimpleSAML_Error_Exception::getBacktrace | ( | ) |
Retrieve the backtrace.
Definition at line 113 of file Exception.php.
References $backtrace.
SimpleSAML_Error_Exception::getCause | ( | ) |
Retrieve the cause of this exception.
Definition at line 124 of file Exception.php.
References $cause.
SimpleSAML_Error_Exception::getClass | ( | ) |
Retrieve the class of this exception.
Definition at line 135 of file Exception.php.
Referenced by SimpleSAML_Error_NotFound\format(), format(), logDebug(), logError(), logInfo(), and logWarning().
|
protected |
Load the backtrace from the given exception.
Exception | $exception | The exception we should fetch the backtrace from. |
Definition at line 81 of file Exception.php.
References $t.
Referenced by SimpleSAML_Error_UnserializableException\__construct(), and __construct().
SimpleSAML_Error_Exception::log | ( | $default_level | ) |
Print the exception to the log, by default with log level error.
Override to allow errors extending this class to specify the log level themselves.
int | $default_level | The log level to use if this method was not overridden. |
Definition at line 235 of file Exception.php.
References DEBUG.
Referenced by sspmod_saml_IdP_SAML2\handleAuthError().
|
protected |
Print the backtrace to the log if the 'debug' option is enabled in the configuration.
Definition at line 198 of file Exception.php.
References $backtrace, Sabre\VObject\$debug, formatBacktrace(), and SimpleSAML_Configuration\getInstance().
Referenced by logDebug(), logError(), logInfo(), and logWarning().
SimpleSAML_Error_Exception::logDebug | ( | ) |
Print the exception to the log with log level debug.
This function will write this exception to the log, including a full backtrace.
Definition at line 288 of file Exception.php.
References DEBUG, SimpleSAML\Logger\debug(), getClass(), and logBacktrace().
SimpleSAML_Error_Exception::logError | ( | ) |
Print the exception to the log with log level error.
This function will write this exception to the log, including a full backtrace.
Definition at line 252 of file Exception.php.
References SimpleSAML\Logger\error(), getClass(), and logBacktrace().
Referenced by SimpleSAML_Error_Error\show().
SimpleSAML_Error_Exception::logInfo | ( | ) |
Print the exception to the log with log level info.
This function will write this exception to the log, including a full backtrace.
Definition at line 276 of file Exception.php.
References getClass(), SimpleSAML\Logger\info(), and logBacktrace().
SimpleSAML_Error_Exception::logWarning | ( | ) |
Print the exception to the log with log level warning.
This function will write this exception to the log, including a full backtrace.
Definition at line 264 of file Exception.php.
References getClass(), logBacktrace(), and SimpleSAML\Logger\warning().
|
private |
Definition at line 23 of file Exception.php.
Referenced by getBacktrace(), and logBacktrace().
|
private |
Definition at line 31 of file Exception.php.
Referenced by SimpleSAML_Error_UserAborted\__construct(), SimpleSAML\Module\saml\Error\NoSupportedIDP\__construct(), SimpleSAML\Module\saml\Error\NoPassive\__construct(), SimpleSAML\Module\saml\Error\NoAuthnContext\__construct(), SimpleSAML\Module\saml\Error\NoAvailableIDP\__construct(), SimpleSAML\Module\saml\Error\ProxyCountExceeded\__construct(), SimpleSAML_Error_AuthSource\__construct(), sspmod_saml_Error\__construct(), __construct(), SimpleSAML_Error_Error\__construct(), and getCause().