Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/* vim: set noai expandtab ts=4 st=4 sw=4: */
3
 
4
/**
5
 * Exception class used by File_Sitemap package.
6
 *
7
 * PHP versions 5
8
 *
9
 * Redistribution and use in source and binary forms, with or without
10
 * modification, are permitted provided that the following conditions are met:
11
 *
12
 *  * Redistributions of source code must retain the above copyright notice,
13
 *    this list of conditions and the following disclaimer.
14
 *  * Redistributions in binary form must reproduce the above copyright notice,
15
 *    this list of conditions and the following disclaimer in the documentation
16
 *    and/or other materials provided with the distribution.
17
 *  * The names of its contributors may not be used to endorse or promote
18
 *    products derived from this software without specific prior written
19
 *    permission.
20
 *
21
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
 * POSSIBILITY OF SUCH DAMAGE.
32
 *
33
 * @category File
34
 * @package  File_Sitemap
35
 * @author   Charles Brunet <cbrunet@php.net>
36
 * @license  http://www.opensource.org/licenses/bsd-license.html BSD License
37
 * @version  CVS: $Id: Exception.php 299129 2010-05-07 22:21:04Z cbrunet $
38
 * @link     http://pear.php.net/package/File_Sitemap
39
 */
40
 
41
require_once "PEAR/Exception.php";
42
 
43
/**
44
 * Exeption class for the File_Sitemap package.
45
 *
46
 * @category File
47
 * @package  File_Sitemap
48
 * @author   Charles Brunet <cbrunet@php.net>
49
 * @license  http://www.opensource.org/licenses/bsd-license.html BSD License
50
 * @version  Release: 0.1.3
51
 * @link     http://pear.php.net/package/File_Sitemap
52
 */
53
class File_Sitemap_Exception extends PEAR_Exception
54
{
55
 
56
    /**
57
     * Misc errors. Can be added to HTTP response code. 1404 means page not
58
     * found.
59
     */
60
    const ERROR = 1000;
61
 
62
    /**
63
     * Error relative to argument parsing when adding data to sitemap.
64
     */
65
    const PARSE_ERROR = 2000;
66
 
67
    /**
68
     * File related error when reading or writing sitemap file.
69
     */
70
    const FILE_ERROR = 3000;
71
}
72
 
73
?>