We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c8a0d5 + 15a9773 commit 953d338Copy full SHA for 953d338
plugins/error.rst
@@ -30,3 +30,9 @@ and the response coming from them::
30
// Something has not been found
31
}
32
33
+
34
+The error plugin is intended for when an application operates with the client directly. When
35
+writing a library around an API, the best practice is to have the client convert responses into
36
+domain objects, and transform HTTP errors into meaningful domain exceptions. In that scenario,
37
+the ErrorPlugin is not needed. It is more efficient to check the HTTP status codes yourself than
38
+throwing and catching exceptions.
0 commit comments