mirror of
https://github.com/Respect/Validation.git
synced 2024-05-29 03:42:25 +02:00
ab65035181
* `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
9 lines
141 B
PHP
9 lines
141 B
PHP
<?php
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
class ComponentException extends Exception implements ExceptionInterface
|
|
{
|
|
}
|