public function __construct($url, $previous = null)
 {
     parent::__construct('Url \'' . $url . '\' is not valid.', 1101, $previous);
 }
 public function __construct($encoding, $previous = null)
 {
     parent::__construct('Trying to use unsupported encoding \'' . $encoding . '\'.', 1001, $previous);
 }
 public function __construct($class = null, $previous = null)
 {
     parent::__construct('Unknown application error in class \'' . $this->getExceptionClass($class) . '\'.', 9999, $previous);
 }
 public function __construct($attribute, $class = null, $previous = null)
 {
     parent::__construct('Attribute \'' . $attribute . '\' not found in class \'' . $this->getExceptionClass($class) . '\'.', 1010, $previous);
 }
 /**
  * @param string $attributeName Attribute name
  * @param mixed $validator        Validator
  * @param null $previous
  */
 public function __construct($attributeName, $validator, $previous = null)
 {
     //        $filter = StringHelper::strCrop(StringHelper::printVar($validator), 50);
     parent::__construct('Validator \'' . $validator . '\' for attribute \'' . $attributeName . '\' is wrong.', 1018, $previous);
 }
 public function __construct($method, $class = null, $previous = null)
 {
     parent::__construct('Method \'' . $method . '\' not found in class \'' . $this->getExceptionClass($class) . '\'.', 1002, $previous);
 }
 public function __construct($validatorName, $previous = null)
 {
     parent::__construct('Validator \'' . $validatorName . '\' not found.', 1017, $previous);
 }
 public function __construct($attributeName, $previous = null)
 {
     parent::__construct('Incorrect attribute name \'' . $attributeName . '\'.', 1011, $previous);
 }
 public function __construct($attributeName, $expectedType, $givenType, $previous = null)
 {
     parent::__construct('Type of attribute \'' . $attributeName . '\' expected \'' . $expectedType . '\' but \'' . $givenType . '\' given.', 1012, $previous);
 }
 public function __construct($email, $previous = null)
 {
     parent::__construct('E-Mail \'' . $email . '\' is not valid.', 1102, $previous);
 }
 public function __construct($filterName, $previous = null)
 {
     parent::__construct('Filter \'' . $filterName . '\' not found.', 1015, $previous);
 }
 public function __construct($attributeName, $filter, $previous = null)
 {
     $filter = StringHelper::strCrop(StringHelper::printVar($filter), 50);
     parent::__construct('Filter \'' . $filter . '\' for attribute \'' . $attributeName . '\' is wrong.', 1016, $previous);
 }
 public function __construct($attribute, $class = null, $previous = null)
 {
     parent::__construct('The attribute \'' . $attribute . '\' validation failed in class \'' . $this->getExceptionClass($class) . '\'.', 1013, $previous);
 }