⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Exceptions designed for static analysis and easy usage

License

Notifications You must be signed in to change notification settings

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.

About

Exceptions designed for static analysis and easy usage

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project