respect-validation/library/Exceptions
Henrique Moody 75a9b8e94f
Overwrite file and line in ValidationException
Because of how PHP works, when we instantiate an Exception object, the
`file` and `line` properties are the file and line where we created the
object. That's a desirable behaviour, but there's no value for a user to
know that we created an instance of `ValidationException` in the
`Validator` class.

This commit will overwrite the file and line in the
`ValidationException` to where the method `assert()` was called.

Note that when running `check()` it will still point to `Validator`, but
I decided not to change it, as the method `check()` got deprecated.
2024-12-18 19:49:09 +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 Simplify InvalidRuleConstructorException 2024-03-24 18:06:38 +01:00
MissingComposerDependencyException.php Remove ISO 3166-2 data in favor of PHP ISO codes 2024-02-13 21:53:46 +01:00
ValidationException.php Overwrite file and line in ValidationException 2024-12-18 19:49:09 +01:00