Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/express/error_utils.h

Go to the documentation of this file.
00001 // Filename: error_utils.h
00002 // Created by:  mike (07Nov00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #ifndef ERROR_UTILS_H
00020 #define ERROR_UTILS_H
00021 
00022 #include <pandabase.h>
00023 #include "typedef.h"
00024 
00025 BEGIN_PUBLISH
00026 
00027 enum ErrorUtilCode {
00028   EU_http_redirect = 7,
00029   EU_eof = 6,
00030   EU_network_no_data = 5,
00031 
00032   EU_write_ram = 4,
00033   EU_write = 3,
00034   EU_ok = 2,
00035   EU_success = 1,
00036 
00037   // General errors
00038   EU_error_abort = -1,
00039   EU_error_file_empty = -2,
00040   EU_error_file_invalid = -3,
00041   EU_error_invalid_checksum = -4,
00042 
00043   // General network errors
00044   EU_error_network_dead = -30,
00045   EU_error_network_unreachable = -31,
00046   EU_error_network_disconnected = -32,
00047   EU_error_network_timeout = -33,
00048   EU_error_network_no_data = -34,
00049 
00050   // Local network errors
00051   EU_error_network_disconnected_locally = -40,
00052   EU_error_network_buffer_overflow = -41,
00053   EU_error_network_disk_quota_exceeded = -42,
00054 
00055   // Remote host network errors
00056   EU_error_network_remote_host_disconnected = -50,
00057   EU_error_network_remote_host_down = -51,
00058   EU_error_network_remote_host_unreachable = -52,
00059   EU_error_network_remote_host_not_found = -53,
00060   EU_error_network_remote_host_no_response = -54,
00061 
00062   // General local errors
00063   EU_error_write_out_of_files = -60,
00064   EU_error_write_out_of_memory = -61,
00065   EU_error_write_sharing_violation = -62,
00066   EU_error_write_disk_full = -63,
00067   EU_error_write_disk_not_found = -64,
00068   EU_error_write_disk_sector_not_found = -65,
00069   EU_error_write_disk_fault = -66,
00070   EU_error_write_file_rename = -67,
00071 
00072   // HTTP errors
00073   EU_error_http_server_timeout = -70,
00074   EU_error_http_gateway_timeout = -71,
00075   EU_error_http_service_unavailable = -72,
00076   EU_error_http_proxy_authentication = -73,
00077 
00078   // Zlib errors
00079   EU_error_zlib = -80,
00080 };
00081 
00082 EXPCL_PANDAEXPRESS string error_to_text(ErrorUtilCode err);
00083 EXPCL_PANDAEXPRESS int get_write_error(void);
00084 
00085 #ifdef HAVE_NET
00086 EXPCL_PANDAEXPRESS string handle_socket_error(void);
00087 EXPCL_PANDAEXPRESS int get_network_error(void);
00088 #endif
00089 
00090 END_PUBLISH
00091 
00092 #endif
00093 

Generated on Fri May 2 00:38:23 2003 for Panda by doxygen1.3