2017 © Pedro PelĂĄez
 

library phpbreaker

This package contains a set of exceptions shared across Solis components

image

solis/phpbreaker

This package contains a set of exceptions shared across Solis components

  • Monday, October 23, 2017
  • by realfabecker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,236 Installations
  • PHP
  • 11 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 2 % Grown

The README.md

Solis Exceptions Component

Codacy Badge Codacy Badge Latest Stable Version License Build Status, (*1)

This package contains a set of exceptions shared across Solis components., (*2)

Install

The best way to use this component is through Composer, (*3)

composer require solis/phpbreaker

Usage

The simplest usage is to thrown a implementation of Solis\Breaker\ExceptionInterface., (*4)

``` php, (*5)

use Solis\Breaker\ExceptionInterface;
use Solis\Exceptions\RuntimeException;

try {
    thrown new RuntimeException('something bad here', 500);          
} catch (ExceptionInterface $e){
    echo $e->getMessage();

    // you can get a representation of the exception as array, containing an error and a debug entry
    // $e->toArray();

    // same representation as before but in json format
    // $e->toJson();

    // get only the error entry as json representation
    // $e->getErrorAsJson();

    // get only the debug entry as json representation
    // $e->getDebugAsJson();

    // its possible to set custom data to the error entry of the exception                                
    // $e->getError()->setEntry($entry, $data);

    // the same for the debug entry
    // $e->getDebug()->setEntry($entry, $data);                                      
}    

All exceptions implemented in this package extends one of the SPL Exceptions. So its possible to catch normally with catch \Exception. ## Change log Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. ## Testing ```bash $ composer test

Contributing

All feedback / bug reports / pull requests are welcome., (*6)

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

23/10 2017

dev-master

9999999-dev

This package contains a set of exceptions shared across Solis components

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rafael Becker

20/10 2017

v2.1.0

2.1.0.0

This package contains a set of exceptions shared across Solis components

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rafael Becker

18/10 2017

dev-production

dev-production

This package contains a set of exceptions shared across Solis components

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rafael Becker

27/09 2017

v2.x-dev

2.9999999.9999999.9999999-dev

This package contains a set of exceptions shared across Solis components

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rafael Becker

25/09 2017

v2.0.3

2.0.3.0

This package contains a set of exceptions shared across Solis components

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rafael Becker

23/09 2017

v2.0.2

2.0.2.0

This package contains a set of exceptions shared across Solis components

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rafael Becker

21/09 2017

v2.0.1

2.0.1.0

PhpBreaker deriva das SPls Exceptions de modo a permitir maior detalhamento de erros lançados.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Rafael Becker

20/09 2017

v2.0.0

2.0.0.0

PhpBreaker deriva das SPls Exceptions de modo a permitir maior detalhamento de erros lançados.

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Rafael Becker

05/08 2017

v1.0.0

1.0.0.0

PhpBreaker is a exception handling toolkit

  Sources   Download

MIT

The Development Requires

by Rafael Becker

05/08 2017

v1.x-dev

1.9999999.9999999.9999999-dev

PhpBreaker is a exception handling toolkit

  Sources   Download

MIT

The Development Requires

by Rafael Becker

27/07 2017

dev-devop

dev-devop

PhpBreaker is a exception handling toolkit

  Sources   Download

MIT

The Development Requires

by Rafael Becker

05/05 2017

0.0.1

0.0.1.0

PhpBreaker is a exception handling toolset

  Sources   Download