2017 © Pedro Peláez
 

library exceptions

A small library to catch exceptions and throw them all at the end

image

duncan3dc/exceptions

A small library to catch exceptions and throw them all at the end

  • Saturday, April 28, 2018
  • by duncan3dc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

exceptions

A small PHP library to catch exceptions and throw them all together later., (*1)

Full documentation is available at http://duncan3dc.github.io/exceptions/
PHPDoc API documentation is also available at http://duncan3dc.github.io/exceptions/api/, (*2)

release build coverage, (*3)

Installation

The recommended method of installing this library is via Composer., (*4)

Run the following command from your project root:, (*5)

$ composer require duncan3dc/exceptions

Usage

use duncan3dc\Exceptions\Catcher;

require __DIR__ . "/vendor/autoload.php";

$catcher = new Catcher;

$catcher->try(function () {
    throw new \Exception("Whoops1!");
});

$catcher->try(function () {
    throw new \Exception("Whoops2!");
});

$catcher->try(function () {
    echo "ok\n";
});

$catcher->throw();

Read more at http://duncan3dc.github.io/exceptions/, (*6)

Changelog

A Changelog has been available since the beginning of time, (*7)

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter, (*8)

duncan3dc/exceptions for enterprise

Available as part of the Tidelift Subscription, (*9)

The maintainers of duncan3dc/exceptions and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more., (*10)

The Versions

28/04 2018

dev-master

9999999-dev https://github.com/duncan3dc/exceptions

A small library to catch exceptions and throw them all at the end

  Sources   Download

Apache-2.0

The Requires

  • php ^7.1

 

The Development Requires

exceptions delay try catch

29/05 2017

1.0.0

1.0.0.0 https://github.com/duncan3dc/exceptions

A small library to catch exceptions and throw them all at the end

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

The Development Requires

exceptions delay try catch

21/08 2016

0.2.0

0.2.0.0 https://github.com/duncan3dc/exceptions

A small library to catch exceptions and throw them all at the end

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

exceptions delay try catch

20/08 2016

0.1.0

0.1.0.0 https://github.com/duncan3dc/exceptions

A small library to catch exceptions and throw them all at the end

  Sources   Download

Apache-2.0

The Requires

  • php >=7.0.0

 

The Development Requires

exceptions delay try catch