/**
* Constants to define the error type.
*/
- const SYSTEM = 1;
- const EMPTY_RESULT = 2;
+ const SYSTEM = 1;
+ const EMPTY_RESULT = 2;
+ const INVALID_INFORMATION = 3;
/**
* The array of available error messages. These are connected to the error
protected function setMessages()
{
$this->messages = array(
- self::SYSTEM => _("An internal error occured."),
- self::EMPTY_RESULT => _("No result was found."),
+ self::SYSTEM => _("An internal error occured."),
+ self::EMPTY_RESULT => _("No result was found."),
+ self::INVALID_INFORMATION => _("The information provided is invalid."),
);
}
}