diff --git a/README.md b/README.md index ca826ea..cb95af7 100644 --- a/README.md +++ b/README.md @@ -153,7 +153,7 @@ class MyErrorHandlerMiddleware extends JsonApiErrorHandlerMiddleware return $result; } } catch (\Exception $e) { - return $this->exceptionFactory->createGeneralException($request); + return $this->exceptionFactory->createApplicationErrorException($request)->getErrorDocument()->getResponse($response); } } }