orisai / exceptions
Exceptions designed for static analysis and easy usage
Installs: 124 797
Dependents: 29
Suggesters: 0
Security: 0
Stars: 22
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: 7.4 - 8.3
- ext-mbstring: *
- symfony/polyfill-php80: ^1.18.1
Requires (Dev)
- brianium/paratest: ^6.3.0
- infection/infection: ^0.26.0
- orisai/coding-standard: ^3.0.0
- phpstan/extension-installer: ^1.0.0
- phpstan/phpstan: ^1.0.0
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-phpunit: ^1.0.0
- phpstan/phpstan-strict-rules: ^1.0.0
- phpunit/phpunit: ^9.5.0
- staabm/annotate-pull-request-from-checkstyle: ^1.7.0
README
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.