amontreuil / exception-handler-bundle
An exception list to use for Amiltone's projects
Installs: 64
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.2.5
- ext-json: *
- doctrine/annotations: >=v1.13.0
- symfony/config: >=v5.0.0
- symfony/dependency-injection: >=v5.0.0
- symfony/event-dispatcher: >=v5.0.0
- symfony/framework-bundle: >=v5.0.0
- symfony/http-foundation: >=v5.0.0
- symfony/http-kernel: >=v5.1.5
Requires (Dev)
- phpunit/phpunit: >=9.5.10
- symfony/browser-kit: >=v5.0.0
- symfony/phpunit-bridge: >=v5.0.0
README
Installation
- lancer "composer amontreuil/exception-handler-bundle" dans le repo
- enjoy chaque exception dans l'espace de nom Amontreuil/ExceptionHandlerBundle/
Description des exceptions
-
400 : BadRequestException
- The required data is missing or incorrect.
-
401 : UnauthorizedRequestException
- Unauthorized access
-
403 : ForbiddenRequestException
- Forbidden access
-
404 : NotFoundException
- The given {variable} does not exists in our database.
-
405 : MethodNotAllowedException
- When the request methods is forbidden by the application
- i.e: GET request on POST/PATCH route.
-
415 : UnsupportedMediaTypeApiException
- One of those :
- Your request doesn't contain a Content-Type
- The content-type {contentType} is not allowed in our api calls.
- One of those :
-
452 : BadFormPostException
- Wrong form format has been sent.
-
453 : BadUuidException
- The given {uuid} seems to be invalid.
-
454 : DuplicateDataException
- Data duplication attempt
-
455 : ExtraFieldsException
- The fields {variable} are not allowed.
- Multiple variables can be displayed in the message.
-
456 : ViolationRuleRequestException
- Violation of the rule
-
503 : UnavailableServiceException
- Service unavailable