phapi/exception

This package is abandoned and no longer maintained. No replacement package was suggested.

Phapi Exceptions

1.0.1 2016-09-21 08:53 UTC

This package is not auto-updated.

Last update: 2021-02-13 15:23:32 UTC


README

Build status Code Climate Test Coverage

Package contains a set of exceptions matching HTTP error responses. Phapi will take care of logging the error and sending a proper error response when throwing these exceptions.

Installation

The package is installed by default by the Phapi framework. Installing the package to use is separately can be done by using composer:

$ composer require phapi/exception:1.*

Included exceptions

  • BadGateway
  • BadRequest
  • Conflict
  • Forbidden
  • Gone
  • InternalServerError
  • Locked
  • MethodNotAllowed
  • NotAcceptable
  • NotFound
  • NotImplemented
  • PaymentRequired
  • RequestEntityTooLarge
  • RequestTimeout
  • ServiceUnavailable
  • TooManyRequests
  • Unauthorized
  • UnprocessableEntity
  • UnsupportedMediaType

License

Phapi Exception is licensed under the MIT License - see the license.md file for details

Contribute

Contribution, bug fixes etc are always welcome.