imemento/exceptions

HTTP Exceptions

v8.1.0 2021-07-25 08:32 UTC

This package is auto-updated.

Last update: 2024-10-26 21:03:59 UTC


README

Build Status Latest Stable Version License Total Downloads

This package provides some common exceptions to be used in all iMemento Services.

Install

composer require imemento/exceptions

Usage

throw new ResourceException($message, $debug, $code, $previous);

All our exceptions that extend the HttpException class have a unique id, optional debug info and an error code. They will be mapped to a specific response from http-responses using our custom error handler.

Errors