summaryrefslogtreecommitdiffstats
path: root/application/exceptions/ApiException.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-05-28 01:12:05 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-28 18:10:13 +0200
commit5a54560adc80cd3bc0da77b95ca740353fa5c680 (patch)
tree1b7b499082c66189e790758858d3404d82fe0510 /application/exceptions/ApiException.php
parent9797836b2887d0edb70eb66f9c9d5bdb4bb49d15 (diff)
imagemagick: Use nested exception
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/exceptions/ApiException.php')
-rw-r--r--application/exceptions/ApiException.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/exceptions/ApiException.php b/application/exceptions/ApiException.php
index b3b9decff..b1ec96117 100644
--- a/application/exceptions/ApiException.php
+++ b/application/exceptions/ApiException.php
@@ -10,9 +10,9 @@ class ApiException extends \Exception {
private $error_id;
private $data;
- public function __construct($error_id, $message, $data = null)
+ public function __construct($error_id, $message, $data = null, $previous = null)
{
- parent::__construct($message);
+ parent::__construct($message, 0, $previous);
$this->error_id = $error_id;
$this->data = $data;