PHP Classes
PHP Classes
elePHPant
Icontem

Notable PHP package: Deferred Exceptions

Recommend this page to a friend!
  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)  

Author:

Updated on: 2016-08-03

Posted on:

Categories: Notable Packages

Sometimes you need to call different functions in sequence. However if one of the functions throws an exception you may not be able to execute the other functions unless you catch the exceptions of each function.

Putting try and catch statements around every function call may be tedious and boring task.

This package provides an alternative solution. It provides a trait that allows you to queue multiple exceptions thrown by classes that use the trait.

This way you can have access to the whole list of thrown exceptions throw the last or all exceptions that happened.

Read this article to learn more details about how this notable PHP package works.


 



The package Deferred Exceptions is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Queue exceptions and throws them afterwards

Here follows in more detail what it does:

This package provides a trait that can queue exceptions and throws them afterwards.

It provides a function that queues exceptions and store the exception objects internally.

The trait can also throw later the last or all the queued exceptions.

Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.



You need to be a registered user or login to post a comment

1,532,477 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

No comments were submitted yet.



  Blog PHP Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable PHP package: ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)