From dfe90ca5acf85c87af945ee04653390015173caf Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sun, 15 Nov 2015 10:45:37 +0100 Subject: [PATCH] Added missing class --- src/Error/PHP7ErrorException.php | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 src/Error/PHP7ErrorException.php diff --git a/src/Error/PHP7ErrorException.php b/src/Error/PHP7ErrorException.php new file mode 100644 index 00000000000..b3b479245e6 --- /dev/null +++ b/src/Error/PHP7ErrorException.php @@ -0,0 +1,55 @@ +_error = $error; + $message = $error->getMessage(); + $code = $error->getCode(); + parent::__construct(sprintf('(%s) - %s', get_class($error), $message), $code); + } + + /** + * Returns the wrapped error object + * + * @return Error + */ + public function getError() + { + return $this->_error; + } +}