ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($assertion=NULL) | |
Constructor for the assertion exception. More... | |
getAssertion () | |
Retrieve the assertion which failed. 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 | installHandler () |
Install this assertion handler. More... | |
static | onAssertion ($file, $line, $message) |
Handle assertion. More... | |
Static Public Member Functions inherited from SimpleSAML_Error_Exception | |
static | fromException (Exception $e) |
Convert any exception into a SimpleSAML_Error_Exception. More... | |
Private Attributes | |
$assertion | |
The assertion which failed, or NULL if only an expression was passed to the assert-function. More... | |
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... | |
Definition at line 9 of file Assertion.php.
SimpleSAML_Error_Assertion::__construct | ( | $assertion = NULL | ) |
Constructor for the assertion exception.
Should only be called from the onAssertion handler.
string | NULL | $assertion | The assertion which failed, or NULL if the assert-function was given an expression. |
Definition at line 27 of file Assertion.php.
References $assertion.
SimpleSAML_Error_Assertion::getAssertion | ( | ) |
Retrieve the assertion which failed.
Definition at line 42 of file Assertion.php.
References $assertion.
|
static |
Install this assertion handler.
This function will register this assertion handler. If will not enable assertions if they are disabled.
Definition at line 53 of file Assertion.php.
References array.
|
static |
Handle assertion.
This function handles an assertion.
string | $file | The file assert was called from. |
int | $line | The line assert was called from. |
mixed | $message | The expression which was passed to the assert-function. |
Definition at line 70 of file Assertion.php.
References $message.
|
private |
The assertion which failed, or NULL if only an expression was passed to the assert-function.
Definition at line 16 of file Assertion.php.
Referenced by __construct(), and getAssertion().