projects
/
m6w6
/
seekat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update to PHP-8.1
[m6w6/seekat]
/
lib
/
Exception
/
RequestException.php
diff --git
a/lib/Exception/RequestException.php
b/lib/Exception/RequestException.php
index 575097fc811a2d391db475b3db0a633cda598395..06bc96032b5b37b6bb3830fd7847c46bcabe8f6f 100644
(file)
--- a/
lib/Exception/RequestException.php
+++ b/
lib/Exception/RequestException.php
@@
-2,17
+2,13
@@
namespace seekat\Exception;
namespace seekat\Exception;
-use http\ {
- Client\Response,
- Header
-};
+use http\{Client\Response, Header};
use seekat\Exception;
/**
* @code-coverage-ignore
*/
use seekat\Exception;
/**
* @code-coverage-ignore
*/
-class RequestException extends \Exception implements Exception
-{
+class RequestException extends \Exception implements Exception {
/**
* JSON errors
* @var array
/**
* JSON errors
* @var array
@@
-60,6
+56,13
@@
class RequestException extends \Exception implements Exception
return $this->errors;
}
return $this->errors;
}
+ /**
+ * @return Response
+ */
+ function getResponse() : Response {
+ return $this->response;
+ }
+
/**
* Combine any errors into a single string
* @staticvar array $reasons
/**
* Combine any errors into a single string
* @staticvar array $reasons