메소드 | 설명 | |
---|---|---|
__construct ( string $message, integer $code, Exception $cause = null ) | Constructor for this error. | |
__sleep ( ) : array | Function for serialization. | |
format ( boolean $anonymize = false ) : array | Format this exception for logging. | |
formatBacktrace ( boolean $anonymize = false ) : array | Format the backtrace for logging. | |
fromException ( Exception $e ) : SimpleSAML_Error_Exception | Convert any exception into a SimpleSAML_Error_Exception. | |
getBacktrace ( ) : array | Retrieve the backtrace. | |
getCause ( ) : SimpleSAML_Error_Exception | null | Retrieve the cause of this exception. | |
getClass ( ) : string | Retrieve the class of this exception. | |
log ( integer $default_level ) | Print the exception to the log, by default with log level error. | |
logDebug ( ) | Print the exception to the log with log level debug. | |
logError ( ) | Print the exception to the log with log level error. | |
logInfo ( ) | Print the exception to the log with log level info. | |
logWarning ( ) | Print the exception to the log with log level warning. |
메소드 | 설명 | |
---|---|---|
initBacktrace ( Exception $exception ) | Load the backtrace from the given exception. | |
logBacktrace ( $level = SimpleSAML\Logger::DEBUG ) | Print the backtrace to the log if the 'debug' option is enabled in the configuration. |
public __construct ( string $message, integer $code, Exception $cause = null ) | ||
$message | string | Exception message |
$code | integer | Error code |
$cause | Exception | The cause of this exception. |
public formatBacktrace ( boolean $anonymize = false ) : array | ||
$anonymize | boolean | Whether the resulting messages should be anonymized or not. |
리턴 | array | All lines of the backtrace, properly formatted. |
public static fromException ( Exception $e ) : SimpleSAML_Error_Exception | ||
$e | Exception | The exception. |
리턴 | SimpleSAML_Error_Exception | The new exception. |
public getBacktrace ( ) : array | ||
리턴 | array | An array where each function call is a single item. |
protected initBacktrace ( Exception $exception ) | ||
$exception | Exception | The exception we should fetch the backtrace from. |
protected logBacktrace ( $level = SimpleSAML\Logger::DEBUG ) |
public logDebug ( ) |
public logError ( ) |
public logInfo ( ) |
public logWarning ( ) |