ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
UnserializableException.php
Go to the documentation of this file.
1<?php
2
16
22 private $class;
23
24
30 public function __construct(Exception $original) {
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 }
44
45
51 public function getClass() {
52 return $this->class;
53 }
54
55}
An exception for terminatinating execution or to throw for unit testing.
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.
getClass()
Retrieve the class of this exception.
$code
Definition: example_050.php:99