Add the exception definition for this package.
authorGunnar Wrobel <p@rdus.de>
Thu, 8 Jul 2010 09:31:10 +0000 (11:31 +0200)
committerGunnar Wrobel <p@rdus.de>
Wed, 25 Aug 2010 17:21:34 +0000 (19:21 +0200)
framework/Kolab_Filter/lib/Horde/Kolab/Filter/Exception.php [new file with mode: 0644]
framework/Kolab_Filter/package.xml

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 (file)
index 0000000..6f01eb1
--- /dev/null
@@ -0,0 +1,76 @@
+<?php
+/**
+ * This class provides the standard error class for the Kolab_Filter package.
+ *
+ * PHP version 5
+ *
+ * @category Kolab
+ * @package  Kolab_Filter
+ * @author   Gunnar Wrobel <wrobel@pardus.de>
+ * @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 <wrobel@pardus.de>
+ * @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;
+}
index 8b1287c..39d1a98 100644 (file)
@@ -76,6 +76,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
       <dir name="Filter">
        <file name="Content.php" role="php" />
        <file name="Base.php" role="php" />
+       <file name="Exception.php" role="php" />
        <file name="Incoming.php" role="php" />
        <file name="Outlook.php" role="php" />
        <file name="Response.php" role="php" />
@@ -244,6 +245,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
    <install name="lib/Horde/Kolab/Filter/Content.php" as="Horde/Kolab/Filter/Content.php" />
    <install name="lib/Horde/Kolab/Test/Filter.php" as="Horde/Kolab/Test/Filter.php" />
    <install name="lib/Horde/Kolab/Filter/Base.php" as="Horde/Kolab/Filter/Base.php" />
+   <install name="lib/Horde/Kolab/Filter/Exception.php" as="Horde/Kolab/Filter/Exception.php" />
    <install name="lib/Horde/Kolab/Filter/Incoming.php" as="Horde/Kolab/Filter/Incoming.php" />
    <install name="lib/Horde/Kolab/Filter/Outlook.php" as="Horde/Kolab/Filter/Outlook.php" />
    <install name="lib/Horde/Kolab/Filter/Response.php" as="Horde/Kolab/Filter/Response.php" />