File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Exception ;
6
6
use Illuminate \Auth \Access \AuthorizationException ;
7
- use Illuminate \Support \Str ;
8
- use InvalidArgumentException ;
9
7
use Illuminate \Auth \AuthenticationException ;
10
- use Illuminate \Validation \ValidationException ;
11
- use SMartins \Exceptions \Response \ErrorHandledInterface ;
12
8
use Illuminate \Database \Eloquent \ModelNotFoundException ;
9
+ use Illuminate \Support \Str ;
10
+ use Illuminate \Validation \ValidationException ;
11
+ use InvalidArgumentException ;
13
12
use SMartins \Exceptions \JsonApi \Response as JsonApiResponse ;
14
13
use SMartins \Exceptions \Response \ErrorHandledCollectionInterface ;
14
+ use SMartins \Exceptions \Response \ErrorHandledInterface ;
15
15
use Symfony \Component \HttpKernel \Exception \BadRequestHttpException ;
16
16
use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
17
17
Original file line number Diff line number Diff line change 2
2
3
3
namespace SMartins \Exceptions \Handlers ;
4
4
5
+ use Illuminate \Database \Eloquent \ModelNotFoundException ;
5
6
use Illuminate \Support \Str ;
6
7
use SMartins \Exceptions \JsonApi \Error ;
7
8
use SMartins \Exceptions \JsonApi \Source ;
8
- use Illuminate \Database \Eloquent \ModelNotFoundException ;
9
9
10
10
class ModelNotFoundHandler extends AbstractHandler
11
11
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace SMartins \Exceptions \Handlers ;
4
4
5
+ use League \OAuth2 \Server \Exception \OAuthServerException ;
5
6
use SMartins \Exceptions \JsonApi \Error ;
6
7
use SMartins \Exceptions \JsonApi \Source ;
7
- use League \OAuth2 \Server \Exception \OAuthServerException ;
8
8
9
9
class OAuthServerHandler extends AbstractHandler
10
10
{
Original file line number Diff line number Diff line change 3
3
namespace SMartins \Exceptions \Handlers ;
4
4
5
5
use SMartins \Exceptions \JsonApi \Error ;
6
- use SMartins \Exceptions \JsonApi \Source ;
7
6
use SMartins \Exceptions \JsonApi \ErrorCollection ;
7
+ use SMartins \Exceptions \JsonApi \Source ;
8
8
9
9
class ValidationHandler extends AbstractHandler
10
10
{
Original file line number Diff line number Diff line change 3
3
namespace SMartins \Exceptions \JsonApi ;
4
4
5
5
use Illuminate \Contracts \Support \Arrayable ;
6
- use SMartins \Exceptions \Traits \NotNullArrayable ;
7
- use SMartins \Exceptions \Response \ErrorHandledInterface ;
8
6
use SMartins \Exceptions \Response \ErrorHandledCollectionInterface ;
7
+ use SMartins \Exceptions \Response \ErrorHandledInterface ;
8
+ use SMartins \Exceptions \Traits \NotNullArrayable ;
9
9
10
10
class Error implements Arrayable, ErrorHandledInterface
11
11
{
Original file line number Diff line number Diff line change 3
3
namespace SMartins \Exceptions \JsonApi ;
4
4
5
5
use Illuminate \Support \Collection ;
6
- use SMartins \Exceptions \Response \InvalidContentException ;
7
6
use SMartins \Exceptions \Response \ErrorHandledCollectionInterface ;
7
+ use SMartins \Exceptions \Response \InvalidContentException ;
8
8
9
9
class ErrorCollection extends Collection implements ErrorHandledCollectionInterface
10
10
{
You can’t perform that action at this time.
0 commit comments