@@ -70,20 +70,16 @@ |
||
| 70 | 70 | $this->response = $this->get_response(); |
| 71 | 71 | |
| 72 | 72 | Log::instance()->add('the request was processed successfully'); |
| 73 | - } |
|
| 74 | - catch (Exception\Structure $e) |
|
| 73 | + } catch (Exception\Structure $e) |
|
| 75 | 74 | { |
| 76 | 75 | $this->response = $this->get_error_response($e->getCode(), 'Error in request'); |
| 77 | - } |
|
| 78 | - catch (Exception\Sign $e) |
|
| 76 | + } catch (Exception\Sign $e) |
|
| 79 | 77 | { |
| 80 | 78 | $this->response = $this->get_error_response($e->getCode(), 'Signature error!'); |
| 81 | - } |
|
| 82 | - catch (Exception\Runtime $e) |
|
| 79 | + } catch (Exception\Runtime $e) |
|
| 83 | 80 | { |
| 84 | 81 | $this->response = $this->get_error_response($e->getCode(), 'Error while processing request'); |
| 85 | - } |
|
| 86 | - catch (\Exception $e) |
|
| 82 | + } catch (\Exception $e) |
|
| 87 | 83 | { |
| 88 | 84 | $this->response = $this->get_error_response($e->getCode(), $e->getMessage()); |
| 89 | 85 | } |