class = get_class($original); $msg = $original->getMessage(); $code = $original->getCode(); if (!is_int($code)) { /* PDOException uses a string as the code. Filter it out here. */ $code = -1; } parent::__construct($msg, $code); $this->initBacktrace($original); } /** * Retrieve the class of this exception. * * @return string The classname. */ public function getClass() { return $this->class; } }