From 6c38b0ce01956020ac878a86db5408e996316698 Mon Sep 17 00:00:00 2001 From: SonicGD Date: Fri, 6 Apr 2018 14:20:09 +0500 Subject: [PATCH] Fix exceptions inheritance --- src/exceptions/DirectAccountNotExistException.php | 4 +--- src/exceptions/DirectApiNotEnoughUnitsException.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/exceptions/DirectAccountNotExistException.php b/src/exceptions/DirectAccountNotExistException.php index 4df0b40..a3cae75 100644 --- a/src/exceptions/DirectAccountNotExistException.php +++ b/src/exceptions/DirectAccountNotExistException.php @@ -3,9 +3,7 @@ namespace directapi\exceptions; -use Exception; - -class DirectAccountNotExistException extends Exception +class DirectAccountNotExistException extends DirectApiException { public $error_detail; diff --git a/src/exceptions/DirectApiNotEnoughUnitsException.php b/src/exceptions/DirectApiNotEnoughUnitsException.php index 4523bab..96c2542 100644 --- a/src/exceptions/DirectApiNotEnoughUnitsException.php +++ b/src/exceptions/DirectApiNotEnoughUnitsException.php @@ -3,7 +3,7 @@ namespace directapi\exceptions; -class DirectApiNotEnoughUnitsException extends \Exception +class DirectApiNotEnoughUnitsException extends DirectApiException { public $error_detail;