1: <?php
2: /**
3: * This class provides an error thrown when the user supplied invalid command
4: * line parameters.
5: *
6: * PHP version 5
7: *
8: * @category Kolab
9: * @package Kolab_Filter
10: * @author Gunnar Wrobel <wrobel@pardus.de>
11: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
12: * @link http://pear.horde.org/index.php?package=Kolab_Filter
13: */
14:
15: /**
16: * This class provides an error thrown when the user supplied invalid command
17: * line parameters.
18: *
19: * Copyright 2010 Klarälvdalens Datakonsult AB
20: *
21: * See the enclosed file COPYING for license information (LGPL). If you
22: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
23: *
24: * @category Kolab
25: * @package Kolab_Filter
26: * @author Gunnar Wrobel <wrobel@pardus.de>
27: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
28: * @link http://pear.horde.org/index.php?package=Kolab_Filter
29: */
30: class Horde_Kolab_Filter_Exception_Usage
31: extends Horde_Kolab_Filter_Exception
32: {
33: /**
34: * Construct the exception
35: *
36: * @param string $msg
37: * @param Exception $previous
38: */
39: public function __construct($msg = '', Exception $previous = null)
40: {
41: parent::__construct(
42: $msg,
43: Horde_Kolab_Filter_Exception::OUT_STDOUT |
44: Horde_Kolab_Filter_Exception::EX_USAGE,
45: $previous
46: );
47: }
48: }
49: