|
@@ -2,13 +2,14 @@
|
|
|
|
|
|
namespace Modules\Common\Exceptions;
|
|
namespace Modules\Common\Exceptions;
|
|
|
|
|
|
|
|
+use Catch\Exceptions\CatchException;
|
|
use Throwable;
|
|
use Throwable;
|
|
|
|
|
|
-class CommonBusinessException extends \RuntimeException
|
|
+class CommonBusinessException extends CatchException
|
|
{
|
|
{
|
|
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
|
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
|
{
|
|
{
|
|
- parent::__construct($message, $code, $previous);
|
|
+ parent::__construct($message, $code);
|
|
}
|
|
}
|
|
|
|
|
|
public static function throwError($error, Throwable $previous = null) {
|
|
public static function throwError($error, Throwable $previous = null) {
|