add Amp\Loop example
[m6w6/seekat] / lib / Exception / RequestException.php
index a9da6d6c731bc8ed60d8ab011e04d66feb472a19..3ef263c00e8d4d72ef700eee5ca5858e15e3dc42 100644 (file)
@@ -2,14 +2,16 @@
 
 namespace seekat\Exception;
 
-use Exception as BaseException;
 use http\ {
        Client\Response,
        Header
 };
 use seekat\Exception;
 
-class RequestException extends BaseException implements Exception
+/**
+ * @code-coverage-ignore
+ */
+class RequestException extends \Exception implements Exception
 {
        /**
         * JSON errors
@@ -58,6 +60,13 @@ class RequestException extends BaseException implements Exception
                return $this->errors;
        }
 
+       /**
+        * @return Response
+        */
+       function getResponse() : Response {
+               return $this->response;
+       }
+
        /**
         * Combine any errors into a single string
         * @staticvar array $reasons