1<?php
2
3// +----------------------------------------------------------------------+
4// | Decode and Encode data in Bittorrent format                          |
5// +----------------------------------------------------------------------+
6// | Copyright (C) 2004-2006 Markus Tacker <m@tacker.org>                 |
7// +----------------------------------------------------------------------+
8// | This library is free software; you can redistribute it and/or        |
9// | modify it under the terms of the GNU Lesser General Public           |
10// | License as published by the Free Software Foundation; either         |
11// | version 2.1 of the License, or (at your option) any later version.   |
12// |                                                                      |
13// | This library is distributed in the hope that it will be useful,      |
14// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
15// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    |
16// | Lesser General Public License for more details.                      |
17// |                                                                      |
18// | You should have received a copy of the GNU Lesser General Public     |
19// | License along with this library; if not, write to the                |
20// | Free Software Foundation, Inc.                                       |
21// | 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA               |
22// +----------------------------------------------------------------------+
23
24/**
25* Exception for File_Bittorrent2
26*
27* @package File_Bittorrent2
28* @category File
29* @author Markus Tacker <m@tacker.org>
30* @version $Id: Exception.php 77 2007-08-26 09:42:22Z m $
31*/
32
33/**
34* Include required classes
35*/
36require_once 'PEAR/Exception.php';
37
38/**
39* Exception for File_Bittorrent2
40*
41* @package File_Bittorrent2
42* @category File
43* @author Markus Tacker <m@tacker.org>
44* @version $Id: Exception.php 77 2007-08-26 09:42:22Z m $
45*/
46class File_Bittorrent2_Exception extends PEAR_Exception {
47	/**
48	* @global int Exception happened during data decoding
49	*/
50	const decode = 1;
51
52	/**
53	* @global int Exception happened during data encoding
54	*/
55	const encode = 2;
56
57	/**
58	* @global int There is a problem with the source of the data (file, dir)
59	*/
60	const source = 3;
61
62	/**
63	* @global int Exception happened while making a torrent
64	*/
65	const make   = 4;
66}
67
68?>