respect-validation/library/Exceptions
Henrique Moody 16c2a75d00
Enable validating inputs without throwing exceptions
Currently, the only way to handle when a validation fails is by
`assert()`, which either throws an exception or doesn't. That means that
every time a user wants to handle the results, they must use try-catch
blocks, which may add some overhead.

This commit introduces the `ResultQuery` class that wraps a `Result`
object, providing an alternative to exception-based validation. This
allows users to handle results directly without try-catch blocks.

I’m taking a risky move here using the old method `validate()`, but I
can’t think of a better name for this method.
2025-12-22 20:37:11 +01:00
..
ComponentException.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
Exception.php Update coding standards 2024-01-28 00:22:41 +01:00
InvalidClassException.php Update coding standards 2024-01-28 00:22:41 +01:00
InvalidRuleConstructorException.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
MissingComposerDependencyException.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ValidationException.php Enable validating inputs without throwing exceptions 2025-12-22 20:37:11 +01:00