diff --git a/library/Respect/Validation/Date/AbstractDateException.php b/library/Respect/Validation/Date/AbstractDateException.php deleted file mode 100644 index 489f59c2..00000000 --- a/library/Respect/Validation/Date/AbstractDateException.php +++ /dev/null @@ -1,8 +0,0 @@ - 'You provided an empty string' + ); public function validate($input) { @@ -17,7 +22,9 @@ class NotEmpty extends AbstractRule implements Validatable public function assert($input) { if (!$this->validate($input)) - throw new Exception(); + throw new EmptyStringException( + $this->getMessage(self::MSG_EMPTY_STRING) + ); } } \ No newline at end of file