This website requires JavaScript.
Explore
Pages
CI
Help
Register
Sign In
deblan-mirror
/
respect-validation
Watch
1
Star
0
Fork
You've already forked respect-validation
0
mirror of
https://github.com/Respect/Validation.git
synced
2024-06-01 13:22:24 +02:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
b8c76e3054
respect-validation
/
library
/
Exceptions
/
ExceptionInterface.php
8 lines
82 B
PHP
Raw
Normal View
History
Unescape
Escape
Issue #260: Now using Respect\Validation exceptions only * `ExceptionInterface`: all Respect\Validation\Exceptions implement through inheritance * `ValidatorExceptionInterface`: implemented only by AllOfException. This allows the end users to know when there has been a Validator exception rather than just any of our exceptions. Fixed formatting issues Created two new exception types * Created ValidationExceptionInterface * Created NestedValidationExceptionInterface which extends ValidationExceptionInterface * Renamed from ValidatorExceptionInterface * ValidationException implements ValidationExceptionInterface and ValidationExceptionTest checks for the implementation. * AbstractNestedException implements NestedValidationExceptionInterface and AbstractNestedExceptionTest checks for the implementation. * CheckExceptionsTest now checks all Rule exceptions to make sure they implement ValidationExceptionInterface * ValidatorTest now contains test that shows that only ValidationExceptionInterface can be used reliably with `::check()` * Updated documentation for new exception types * Reworked examples to show how to catch the exception interfaces Minor changes in readme.md and ExceptionInterfaces * Removed `import` statements (hahaha) * Renamed `$e` to `$exception` * `ValidationExceptionInterface` now extends `ExceptionInterface`. Changed `ValidationException` to match
2015-01-30 02:53:20 +01:00
<
?
php
Fix some coding standards
2015-06-08 16:47:14 +02:00
Issue #260: Now using Respect\Validation exceptions only * `ExceptionInterface`: all Respect\Validation\Exceptions implement through inheritance * `ValidatorExceptionInterface`: implemented only by AllOfException. This allows the end users to know when there has been a Validator exception rather than just any of our exceptions. Fixed formatting issues Created two new exception types * Created ValidationExceptionInterface * Created NestedValidationExceptionInterface which extends ValidationExceptionInterface * Renamed from ValidatorExceptionInterface * ValidationException implements ValidationExceptionInterface and ValidationExceptionTest checks for the implementation. * AbstractNestedException implements NestedValidationExceptionInterface and AbstractNestedExceptionTest checks for the implementation. * CheckExceptionsTest now checks all Rule exceptions to make sure they implement ValidationExceptionInterface * ValidatorTest now contains test that shows that only ValidationExceptionInterface can be used reliably with `::check()` * Updated documentation for new exception types * Reworked examples to show how to catch the exception interfaces Minor changes in readme.md and ExceptionInterfaces * Removed `import` statements (hahaha) * Renamed `$e` to `$exception` * `ValidationExceptionInterface` now extends `ExceptionInterface`. Changed `ValidationException` to match
2015-01-30 02:53:20 +01:00
namespace
Respect\Validation\Exceptions
;
interface
ExceptionInterface
{
}
Reference in a new issue
Copy permalink