ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
SimpleSAML_Error_UnserializableException Class Reference
+ Inheritance diagram for SimpleSAML_Error_UnserializableException:
+ Collaboration diagram for SimpleSAML_Error_UnserializableException:

Public Member Functions

 __construct (Exception $original)
 Create a serializable exception representing an unserializable exception. More...
 
 getClass ()
 Retrieve the class of this exception. 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...
 

Private Attributes

 $class
 

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...
 
- 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...
 

Detailed Description

Definition at line 15 of file UnserializableException.php.

Constructor & Destructor Documentation

◆ __construct()

SimpleSAML_Error_UnserializableException::__construct ( Exception  $original)

Create a serializable exception representing an unserializable exception.

Parameters
Exception$originalThe original exception.

Definition at line 30 of file UnserializableException.php.

References $code, and SimpleSAML_Error_Exception\initBacktrace().

30  {
31 
32  $this->class = get_class($original);
33  $msg = $original->getMessage();
34  $code = $original->getCode();
35 
36  if (!is_int($code)) {
37  // PDOException uses a string as the code. Filter it out here.
38  $code = -1;
39  }
40 
41  parent::__construct($msg, $code);
42  $this->initBacktrace($original);
43  }
$code
Definition: example_050.php:99
initBacktrace(Exception $exception)
Load the backtrace from the given exception.
Definition: Exception.php:81
+ Here is the call graph for this function:

Member Function Documentation

◆ getClass()

SimpleSAML_Error_UnserializableException::getClass ( )

Retrieve the class of this exception.

Returns
string The classname.

Definition at line 51 of file UnserializableException.php.

References $class.

Field Documentation

◆ $class

SimpleSAML_Error_UnserializableException::$class
private

Definition at line 22 of file UnserializableException.php.

Referenced by getClass().


The documentation for this class was generated from the following file: