From afa7836c43221352fc2691a6d882d5ff59f8bdf2 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Sun, 6 Jan 2019 10:10:57 +0100 Subject: [PATCH] Update ErrorPlugin.php --- src/Plugin/ErrorPlugin.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Plugin/ErrorPlugin.php b/src/Plugin/ErrorPlugin.php index 2d1d2f1..a187295 100644 --- a/src/Plugin/ErrorPlugin.php +++ b/src/Plugin/ErrorPlugin.php @@ -17,6 +17,14 @@ * * Status codes 400-499 lead to a ClientErrorException, status 500-599 to a ServerErrorException. * + * Warning + * ======= + * + * Throwing an exception on a valid response violates the PSR-18 specification. + * This plugin is provided as a convenience when writing a small application. + * When providing a client to a third party library, this plugin must not be + * included, or the third party library will have problems with error handling. + * * @author Joel Wurtz */ final class ErrorPlugin implements Plugin