Download the PHP package blacksmith-project/dr-watson without Composer
On this page you can find all versions of the php package blacksmith-project/dr-watson. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download blacksmith-project/dr-watson
More information about blacksmith-project/dr-watson
Files in blacksmith-project/dr-watson
Download blacksmith-project/dr-watson
More information about blacksmith-project/dr-watson
Files in blacksmith-project/dr-watson
Vendor blacksmith-project
Package dr-watson
Short Description A PHP library enhancing `\Exception`.
License MIT
Package dr-watson
Short Description A PHP library enhancing `\Exception`.
License MIT
Please rate this library. Is it a good library?
Informations about the package dr-watson
BlacksmithProject - DrWatson
A PHP library enhancing \Exception
.
Why ?
\Exception
does not provide enough information to debug easily.
Indeed, stacktrace can sometime be hard to understand, and message can be insufficient.
DrWatson
is the developper personal investigation assistant, providing
type, suspect and help.
Installation:
composer require blacksmith-project/dr-watson
How to use it:
You can throw a DrWatson::report
.
- type should tell you if the exception is an input issue, domain or internal.
That will help you to know quickly who failed and what quick deduction you can make:
- Input = User failed, let him know.
- Domain = Further investigation on the code is necessary.
- Internal = Inspect the code, but maybe some infrastructure failed (BDD for example).
- suspect should help you target quickly to the right place to look at.
- help should explain to you why it failed. Some business logic can be exposed here, to help you narrow the issue down.
Example:
All versions of dr-watson with dependencies
PHP Build Version
Package Version
Requires
myclabs/php-enum Version
^1.6
The package blacksmith-project/dr-watson contains the following files
Loading the files please wait ....