respect-validation/library/Exceptions
Henrique Moody 238f2d506a
Update validation engine
There are a few "problems" with the current engine:

- Allowing each rule to execute assert() and check() means duplication
  in some cases.

- Because we use exceptions to assert/check, we can only invert a
  validation (with Not) if there are errors. That means that we have
  limited granularity control.

- There is a lot of logic in the exceptions. That means that even after
  it throws an exception, something could still happen. We're stable on
  that front, but I want to simplify them. Besides, debugging exception
  code is painful because the stack trace does not go beyond the
  exception.

Apart from that, there are many limitations with templating, and working
that out in the current implementation makes it much harder.

These changes will improve the library in many aspects, but they will
also change the behavior and break backward compatibility. However,
that's a price I'm willing to pay for the improvements we'll have.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2024-02-22 16:54:44 +01:00
..
ComponentException.php Update coding standards 2024-01-28 00:22:41 +01:00
EachException.php Use PHP attributes to define templates 2024-01-29 23:43:57 +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 Remove ISO 3166-2 data in favor of PHP ISO codes 2024-02-13 21:53:46 +01:00
MissingComposerDependencyException.php Remove ISO 3166-2 data in favor of PHP ISO codes 2024-02-13 21:53:46 +01:00
NestedValidationException.php Use PHP attributes to define templates 2024-01-29 23:43:57 +01:00
NonOmissibleValidationException.php Use PHP attributes to define templates 2024-01-29 23:43:57 +01:00
RecursiveExceptionIterator.php Make properties readonly 2024-01-28 01:24:15 +01:00
ValidationException.php Use convention to idenfity custom templates 2024-02-14 18:12:18 +01:00
ValidatorException.php Update validation engine 2024-02-22 16:54:44 +01:00