1: <?php
2: /**
3: * This class provides the standard error class for the Kolab_Filter package.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Filter
9: * @author Gunnar Wrobel <wrobel@pardus.de>
10: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
11: * @link http://pear.horde.org/index.php?package=Kolab_Filter
12: */
13:
14: /**
15: * This class provides the standard error class for the Kolab_Filter package.
16: *
17: * Copyright 2010 Klarälvdalens Datakonsult AB
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you
20: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
21: *
22: * @category Kolab
23: * @package Kolab_Filter
24: * @author Gunnar Wrobel <wrobel@pardus.de>
25: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
26: * @link http://pear.horde.org/index.php?package=Kolab_Filter
27: */
28: class Horde_Kolab_Filter_Exception
29: extends Horde_Exception
30: {
31: /**
32: * Failure constants from postfix src/global/sys_exits.h
33: *
34: * These are required as exit codes for our communication with postfix.
35: */
36:
37: /* command line usage error */
38: const EX_USAGE = 64;
39: /* data format error */
40: const EX_DATAERR = 65;
41: /* cannot open input */
42: const EX_NOINPUT = 66;
43: /* user unknown */
44: const EX_NOUSER = 67;
45: /* host name unknown */
46: const EX_NOHOST = 68;
47: /* service unavailable */
48: const EX_UNAVAILABLE = 69;
49: /* internal software error */
50: const EX_SOFTWARE = 70;
51: /* system resource error */
52: const EX_OSERR = 71;
53: /* critical OS file missing */
54: const EX_OSFILE = 72;
55: /* can't create user output file */
56: const EX_CANTCREAT = 73;
57: /* input/output error */
58: const EX_IOERR = 74;
59: /* temporary failure */
60: const EX_TEMPFAIL = 75;
61: /* remote error in protocol */
62: const EX_PROTOCOL = 76;
63: /* permission denied */
64: const EX_NOPERM = 77;
65: /* local configuration error */
66: const EX_CONFIG = 78;
67:
68: /**
69: * Some output constants.
70: *
71: * These indicate to the view how an exception should be handled.
72: */
73:
74: const OUT_STDOUT = 128;
75: const OUT_LOG = 256;
76: }
77: