respect-validation/library/Exceptions
Andy Wendt ab65035181 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-31 07:59:59 -07:00
..
Locale Create german bank rules 2015-01-18 13:39:41 -02:00
AbstractGroupedException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
AbstractNestedException.php Issue #260: Now using Respect\Validation exceptions only 2015-01-31 07:59:59 -07:00
AllOfException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
AlnumException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
AlphaException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
AlwaysInvalidException.php Allow to use when() rule without else 2015-01-19 12:10:50 -02:00
AlwaysValidException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
ArrException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
AtLeastException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
AttributeException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
BankAccountException.php Added bank(), bankAccount() and bic(). Currently only German. 2015-01-14 21:17:04 +01:00
BankException.php Fix some standards on bank rules 2015-01-17 13:00:18 -02:00
BaseException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
BetweenException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
BicException.php Fix some standards on bank rules 2015-01-17 13:00:18 -02:00
BoolException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CallbackException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CallException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CharsetException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CnhException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CnpjException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CntrlException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
ComponentException.php Issue #260: Now using Respect\Validation exceptions only 2015-01-31 07:59:59 -07:00
ConsonantException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
ContainsException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CountryCodeException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CpfException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
CreditCardException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
DateException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
DigitException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
DirectoryException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
DomainException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
EachException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
EmailException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
EndsWithException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
EqualsException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
EvenException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
ExceptionInterface.php Issue #260: Now using Respect\Validation exceptions only 2015-01-31 07:59:59 -07:00
ExecutableException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
ExistsException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
FalseException.php Create "False" rule 2015-01-23 02:46:18 -02:00
FileException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
FilterVarException.php Create "FilterVar" rule 2015-01-26 11:25:26 -02:00
FloatException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
GraphException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
HexaException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
HexRgbColorException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
InException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
InstanceException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
IntException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
IpException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
JsonException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
KeyException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
LeapDateException.php Add missing exceptions 2015-01-02 17:25:01 -02:00
LeapYearException.php Add missing exceptions 2015-01-02 17:25:01 -02:00
LengthException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
LowercaseException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
MacAddressException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
MaxException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
MinException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
MinimumAgeException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
MostOfException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
MultipleException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NegativeException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NestedValidationExceptionInterface.php Issue #260: Now using Respect\Validation exceptions only 2015-01-31 07:59:59 -07:00
NfeAccessKeyException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NoException.php Create Yes/No rules 2015-01-06 20:46:16 -02:00
NoneOfException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NotEmptyException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NotException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NoWhitespaceException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NullValueException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
NumericException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
ObjectException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
OddException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
OneOfException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
PerfectSquareException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
PhoneException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
PositiveException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
PostalCodeException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
PrimeNumberException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
PrntException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
PunctException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
ReadableException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
RegexException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
RomanException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
SfException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
SlugException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
SpaceException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
StartsWithException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
StringException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
SymbolicLinkException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
TldException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
TrueException.php Create "True" rule 2015-01-23 02:46:07 -02:00
UploadedException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
UppercaseException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
UrlException.php Create "Url" rule 2015-01-27 10:43:00 -02:00
ValidationException.php Issue #260: Now using Respect\Validation exceptions only 2015-01-31 07:59:59 -07:00
ValidationExceptionInterface.php Issue #260: Now using Respect\Validation exceptions only 2015-01-31 07:59:59 -07:00
VersionException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
VowelException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
WhenException.php Add missing exceptions 2015-01-02 17:25:01 -02:00
WritableException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
XdigitException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00
YesException.php Create Yes/No rules 2015-01-06 20:46:16 -02:00
ZendException.php Use PSR-2 standard 2015-01-08 00:44:12 -02:00