From 6411e067a4e8b40c081a03272ba7b58660c3451c Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Tue, 14 Apr 2009 10:05:29 +0200 Subject: [PATCH] Allow to indicate indicate/missing information. --- framework/Kolab_Server/lib/Horde/Kolab/Server/Exception.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/framework/Kolab_Server/lib/Horde/Kolab/Server/Exception.php b/framework/Kolab_Server/lib/Horde/Kolab/Server/Exception.php index 1eac15835..dfc1cfedc 100644 --- a/framework/Kolab_Server/lib/Horde/Kolab/Server/Exception.php +++ b/framework/Kolab_Server/lib/Horde/Kolab/Server/Exception.php @@ -30,8 +30,9 @@ class Horde_Kolab_Server_Exception extends Horde_Exception /** * 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 @@ -65,8 +66,9 @@ class Horde_Kolab_Server_Exception extends Horde_Exception 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."), ); } } -- 2.11.0