2017 © Pedro Peláez
 

library exceptum

Custom Exception Handling for Laravel

image

agilesdesign/exceptum

Custom Exception Handling for Laravel

  • Tuesday, November 29, 2016
  • by jrseliga
  • Repository
  • 1 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

exceptum

Custom Exception Handling for Laravel, (*1)

Installation

Include through composer

composer require agilesdesign/exceptum, (*2)

Add to provider list
'providers' => [
    Exceptum\Providers\ExceptumServiceProvider::class,
];

Usage

Create an Abettor

Abettor is synonymous with App\Exceptions\Handler in it's intent, but is not an extension of it., (*3)

Currently it only supports implementing the response provided to the render method on App\Exception\Handler ```?php class AuthorizatonExceptionAbettor implements Abettor { public function render($request, Exception $exception) { // handle exception } }, (*4)

##### Register Mapping
Exceptum falls back to Laravel's App\Exception\Handler class unless it knows about an Abettor responsible for Exception thrown.

To tell Exceptum about an Abettor register a mapping in your `ServiceProviders` `register` method
```php
public function register()
{
    Exceptum::map(AuthorizationException::class, AuthorizationExceptionAbettor::class);
}

The Versions

29/11 2016

dev-master

9999999-dev

Custom Exception Handling for Laravel

  Sources   Download

MIT

by Justin Seliga

29/11 2016

v1.0.0-alpha.1

1.0.0.0-alpha1

Custom Exception Handling for Laravel

  Sources   Download

MIT

by Justin Seliga