@@ -155,11 +155,11 @@ as the HTTP status if it falls in the 400 or 500 range (500 will be used
155155otherwise).
156156
157157You can also create custom exceptions that provide details for the factory to
158- consume by implementing ` ProblemDetails\ProblemDetailsException ` , which defines
159- the following:
158+ consume by implementing ` ProblemDetails\Exception\ ProblemDetailsException ` ,
159+ which defines the following:
160160
161161``` php
162- namespace ProblemDetails;
162+ namespace ProblemDetails\Exception ;
163163
164164use JsonSerializable;
165165
@@ -211,8 +211,8 @@ By composing this trait, you can easily define custom exception types:
211211namespace Api;
212212
213213use DomainException as PhpDomainException;
214- use ProblemDetails\CommonProblemDetailsException;
215- use ProblemDetails\ProblemDetailsException;
214+ use ProblemDetails\Exception\ CommonProblemDetailsException;
215+ use ProblemDetails\Exception\ ProblemDetailsException;
216216
217217class DomainException extends PhpDomainException implements ProblemDetailsException
218218{
@@ -249,8 +249,8 @@ a `ProblemDetailsResponseFactory`, and does the following:
249249- Otherwise, it creates a PHP error handler that converts PHP errors to
250250 ` ErrorException ` instances, and then wraps processing of the delegate in a
251251 try/catch block. If the delegate does not return a ` ResponseInterface ` , a
252- ` ProblemDetails\MissingResponseException ` is raised; otherwise, the response
253- is returned.
252+ ` ProblemDetails\Exception\ MissingResponseException ` is raised; otherwise, the
253+ response is returned.
254254- Any throwable or exception caught is passed to the
255255 ` ProblemDetailsResponseFactory::createResponseFromThrowable() ` method, and the
256256 response generated is returned.
0 commit comments