catch all exceptions so that we have logs
This commit is contained in:
@@ -58,6 +58,9 @@ abstract class WebService
|
||||
$data["error"]["name"] = $e->getName();
|
||||
$data["error"]["reason"] = $e->getMessage();
|
||||
$this->log(sprintf("Failure : [%s] %s", $e->getCode(), $e->getName()));
|
||||
} catch (Exception $e) {
|
||||
$data["unexpected error"]["message"] = $e->getMessage();
|
||||
$this->log(sprintf("Unexpected exception : %s", $e->getMessage()));
|
||||
}
|
||||
|
||||
$this->Send($data);
|
||||
|
||||
Reference in New Issue
Block a user