Fixing file upload params ($_FILES) normalization. Closes #75
[akelos.git] / vendor / domit / php_http_exceptions.php
blob9756b07d39ebbc37e485cbe53bc38accba27a280
1 <?php
2 /**
3 * PHP HTTP Tools is a library for working with the http protocol
4 * HTTPExceptions is an HTTP Exceptions class
5 * @package php-http-tools
6 * @copyright (C) 2004 John Heinstein. All rights reserved
7 * @license http://www.gnu.org/copyleft/lesser.html LGPL License
8 * @author John Heinstein <johnkarl@nbnet.nb.ca>
9 * @link http://www.engageinteractive.com/php_http_tools/ PHP HTTP Tools Home Page
10 * PHP HTTP Tools are Free Software
11 **/
13 /** socket connection error */
14 define('HTTP_SOCKET_CONNECTION_ERR', 1);
15 /** http transport error */
16 define('HTTP_TRANSPORT_ERR', 2);
18 /**
19 * An HTTP Exceptions class (not yet implemented)
21 * @package php-http-tools
22 * @author John Heinstein <johnkarl@nbnet.nb.ca>
24 class HTTPExceptions {
25 function raiseException($errorNum, $errorString) {
26 die('HTTP Exception: ' . $errorNum . "\n " . $errorString);
27 } //raiseException
28 } //HTTPExceptions