ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
UnserializableException.php
Go to the documentation of this file.
1 <?php
2 
16 {
17 
23  private $class;
24 
25 
31  public function __construct(Exception $original)
32  {
33 
34  $this->class = get_class($original);
35  $msg = $original->getMessage();
36  $code = $original->getCode();
37 
38  if (!is_int($code)) {
39  // PDOException uses a string as the code. Filter it out here.
40  $code = -1;
41  }
42 
43  parent::__construct($msg, $code);
44  $this->initBacktrace($original);
45  }
46 
47 
53  public function getClass()
54  {
55  return $this->class;
56  }
57 }
getClass()
Retrieve the class of this exception.
$code
Definition: example_050.php:99
initBacktrace(Exception $exception)
Load the backtrace from the given exception.
Definition: Exception.php:81
__construct(Exception $original)
Create a serializable exception representing an unserializable exception.