We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9da616d + afa7836 commit f9f44c6Copy full SHA for f9f44c6
src/Plugin/ErrorPlugin.php
@@ -17,6 +17,14 @@
17
*
18
* Status codes 400-499 lead to a ClientErrorException, status 500-599 to a ServerErrorException.
19
20
+ * Warning
21
+ * =======
22
+ *
23
+ * Throwing an exception on a valid response violates the PSR-18 specification.
24
+ * This plugin is provided as a convenience when writing a small application.
25
+ * When providing a client to a third party library, this plugin must not be
26
+ * included, or the third party library will have problems with error handling.
27
28
* @author Joel Wurtz <[email protected]>
29
*/
30
final class ErrorPlugin implements Plugin
0 commit comments