Componette

Componette

orisai

orisai / exceptions

Exceptions designed for static analysis and easy usage

download-cloud-line composer require orisai/exceptions

Orisai
Exceptions

Exceptions designed for static analysis and easy usage

📄 Check out our documentation.

💸 If you like Orisai, please make a donation. Thank you!

use Orisai\Exceptions\Logic\InvalidState;
use Orisai\Exceptions\Message;

$message = Message::create()
    ->withContext('Trying to commit an import.')
    ->withProblem('There is nothing to commit.')
    ->withSolution('Check that the import files are not empty, and that filters are not too restrictive.');

throw InvalidState::create()
    ->withMessage($message);

... and more.

No release at this moment. Try to create first one.

bar-chart-fill

Statistics

download-cloud-fill
44879
star-fill
16
bug-fill
0
flashlight-fill
26d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.4.0 <8.2.0)
ext-mbstring (*)
Componette Componette felix@nette.org