@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | $response->json(), |
| 41 | 41 | Contracts\Login\LoginResponse::class |
| 42 | 42 | ); |
| 43 | - }catch (RequestException $ex) { |
|
| 43 | + } catch (RequestException $ex) { |
|
| 44 | 44 | $responseBody = $ex->getResponse()->json(); |
| 45 | 45 | throw new \Exception($responseBody['message']); |
| 46 | - }catch (\Exception $ex){ |
|
| 46 | + } catch (\Exception $ex){ |
|
| 47 | 47 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 48 | 48 | } |
| 49 | 49 | } |
@@ -58,10 +58,10 @@ discard block |
||
| 58 | 58 | $this->_httpClient->post(__FUNCTION__,[]); |
| 59 | 59 | |
| 60 | 60 | return true; |
| 61 | - }catch (RequestException $ex) { |
|
| 61 | + } catch (RequestException $ex) { |
|
| 62 | 62 | $responseBody = $ex->getResponse()->json(); |
| 63 | 63 | throw new \Exception($responseBody['message']); |
| 64 | - }catch (\Exception $ex){ |
|
| 64 | + } catch (\Exception $ex){ |
|
| 65 | 65 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 66 | 66 | } |
| 67 | 67 | } |
@@ -82,10 +82,10 @@ discard block |
||
| 82 | 82 | $response->json(), |
| 83 | 83 | Contracts\Login\ConsultaLoginResponse::class |
| 84 | 84 | ); |
| 85 | - }catch (RequestException $ex) { |
|
| 85 | + } catch (RequestException $ex) { |
|
| 86 | 86 | $responseBody = $ex->getResponse()->json(); |
| 87 | 87 | throw new \Exception($responseBody['message']); |
| 88 | - }catch (\Exception $ex){ |
|
| 88 | + } catch (\Exception $ex){ |
|
| 89 | 89 | throw new \Exception($ex->getMessage(), $ex->getCode(), $ex); |
| 90 | 90 | } |
| 91 | 91 | } |