From 78765ef2138d355f02b59a54b0fdac794d5ac0d0 Mon Sep 17 00:00:00 2001
From: Gunnar Wrobel
Date: Thu, 8 Jul 2010 11:31:10 +0200
Subject: [PATCH] Add the exception definition for this package.
---
.../lib/Horde/Kolab/Filter/Exception.php | 76 ++++++++++++++++++++++
framework/Kolab_Filter/package.xml | 2 +
2 files changed, 78 insertions(+)
create mode 100644 framework/Kolab_Filter/lib/Horde/Kolab/Filter/Exception.php
diff --git a/framework/Kolab_Filter/lib/Horde/Kolab/Filter/Exception.php b/framework/Kolab_Filter/lib/Horde/Kolab/Filter/Exception.php
new file mode 100644
index 000000000..6f01eb1b0
--- /dev/null
+++ b/framework/Kolab_Filter/lib/Horde/Kolab/Filter/Exception.php
@@ -0,0 +1,76 @@
+
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Filter
+ */
+
+/**
+ * This class provides the standard error class for the Kolab_Filter package.
+ *
+ * Copyright 2010 Klarälvdalens Datakonsult AB
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you
+ * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
+ *
+ * @category Kolab
+ * @package Kolab_Filter
+ * @author Gunnar Wrobel
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Filter
+ */
+class Horde_Kolab_Filter_Exception
+extends Exception
+{
+ /**
+ * Failure constants from postfix src/global/sys_exits.h
+ *
+ * These are required as exit codes for our communication with postfix.
+ */
+
+ /* command line usage error */
+ const EX_USAGE = 64;
+ /* data format error */
+ const EX_DATAERR = 65;
+ /* cannot open input */
+ const EX_NOINPUT = 66;
+ /* user unknown */
+ const EX_NOUSER = 67;
+ /* host name unknown */
+ const EX_NOHOST = 68;
+ /* service unavailable */
+ const EX_UNAVAILABLE = 69;
+ /* internal software error */
+ const EX_SOFTWARE = 70;
+ /* system resource error */
+ const EX_OSERR = 71;
+ /* critical OS file missing */
+ const EX_OSFILE = 72;
+ /* can't create user output file */
+ const EX_CANTCREAT = 73;
+ /* input/output error */
+ const EX_IOERR = 74;
+ /* temporary failure */
+ const EX_TEMPFAIL = 75;
+ /* remote error in protocol */
+ const EX_PROTOCOL = 76;
+ /* permission denied */
+ const EX_NOPERM = 77;
+ /* local configuration error */
+ const EX_CONFIG = 78;
+
+ /**
+ * Some output constants.
+ *
+ * These indicate to the view how an exception should be handled.
+ */
+
+ const OUT_STDOUT = 128;
+ const OUT_LOG = 256;
+}
diff --git a/framework/Kolab_Filter/package.xml b/framework/Kolab_Filter/package.xml
index 8b1287c9c..39d1a980e 100644
--- a/framework/Kolab_Filter/package.xml
+++ b/framework/Kolab_Filter/package.xml
@@ -76,6 +76,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
+
@@ -244,6 +245,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
+
--
2.11.0