|
|
@@ -46,6 +46,7 @@ class Response {
|
|
|
$response['type'] = 'error';
|
|
|
$response['msg'] = $e->getMessage();
|
|
|
$response['code'] = "#" . $e->getCode() . "L" . $e->getLine();
|
|
|
+ $response['body'] = $e->getBody();
|
|
|
DBG::log($e);
|
|
|
Response::sendJsonExit($response);
|
|
|
} catch (AlertSuccessException $e) {
|
|
|
@@ -53,6 +54,7 @@ class Response {
|
|
|
$response['type'] = 'success';
|
|
|
$response['msg'] = $e->getMessage();
|
|
|
$response['code'] = "#" . $e->getCode() . "L" . $e->getLine();
|
|
|
+ $response['body'] = $e->getBody();
|
|
|
DBG::log($e);
|
|
|
Response::sendJsonExit($response);
|
|
|
} catch (AlertInfoException $e) {
|
|
|
@@ -60,6 +62,7 @@ class Response {
|
|
|
$response['type'] = 'info';
|
|
|
$response['msg'] = $e->getMessage();
|
|
|
$response['code'] = "#" . $e->getCode() . "L" . $e->getLine();
|
|
|
+ $response['body'] = $e->getBody();
|
|
|
DBG::log($e);
|
|
|
Response::sendJsonExit($response);
|
|
|
} catch (AlertWarningException $e) {
|
|
|
@@ -67,6 +70,7 @@ class Response {
|
|
|
$response['type'] = 'warning';
|
|
|
$response['msg'] = $e->getMessage();
|
|
|
$response['code'] = "#" . $e->getCode() . "L" . $e->getLine();
|
|
|
+ $response['body'] = $e->getBody();
|
|
|
DBG::log($e);
|
|
|
Response::sendJsonExit($response);
|
|
|
} catch (Exception $e) {
|