UTErrorCodes.h

Go to the documentation of this file.
00001 //==================================================================================================
00002 // Copyright (C) 2010  Brian Tietz    sdbtietz at yahoo dot com
00003 //
00004 // This program is free software; you can redistribute it and/or modify it under the terms of the
00005 // GNU General Public License as published by the Free Software Foundation, version 2.0 of the
00006 // License.
00007 //
00008 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
00009 // even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00010 // General Public License for more details.
00011 //
00012 // You should have received a copy of the GNU General Public License along with this program; if
00013 // not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00014 // 02110-1301, USA.
00015 //
00016 // For commercial software, the copyright holder (Brian Tietz, email sdbtietz at yahoo dot com)
00017 // reserves the right and is willing to waive the proprietary source code disclosure aspects of that
00018 // license as applied to the UT library in exchange for either substantial contributions to the
00019 // development of the UT library or other forms of compensation.  Any such waiver must be
00020 // established in writing between the copyright holder and the commercial entity obtaining such a
00021 // waiver.
00022 //==================================================================================================
00023 
00024 
00025 #ifndef _UT_H_
00026 #error "DO NOT INCLUDE THIS FILE - INCLUDE UT.h INSTEAD"
00027 #endif
00028 
00029 #ifdef _UT_ERROR_CODES_H_
00030 #error "DO NOT INCLUDE THIS FILE - INCLUDE UT.h INSTEAD"
00031 #endif
00032 
00033 #define _UT_ERROR_CODES_H_
00034 
00035 
00036 
00037 //==================================================================================================
00038 //=== General errors
00039 //==================================================================================================
00040 
00042 #define eERR_not_implemented                                ERROR_CODE(eERR_unknown_error + 0x001)
00043 DEFINE_USER_ERROR( eERR_not_implemented,
00044 "Not implemented yet" )
00045 
00046 
00047 
00048 #define eERR_previous_operation_failed                      ERROR_CODE(eERR_unknown_error + 0x002)
00049 DEFINE_USER_ERROR( eERR_previous_operation_failed,
00050 "Previous failed operation prevents further operations" )
00051 
00052 
00053 //==================================================================================================
00054 //=== Text conversion errors
00055 //==================================================================================================
00056 
00057 
00058 #define eERR_invalid_utf8                                   ERROR_CODE(eERR_unknown_error + 0x010)
00059 DEFINE_USER_ERROR( eERR_invalid_utf8,
00060 "Invalid UTF8 byte sequence" )
00061 
00062 
00063 #define eERR_invalid_ascii                                  ERROR_CODE(eERR_unknown_error + 0x011)
00064 DEFINE_USER_ERROR( eERR_invalid_ascii,
00065 "Invalid ASCII byte sequence" )
00066 
00067 
00068 #define eERR_unicode_out_of_bounds                          ERROR_CODE(eERR_unknown_error + 0x012)
00069 DEFINE_USER_ERROR( eERR_unicode_out_of_bounds,
00070 "UNICODE character is out of bounds" )
00071 
00072 
00073 //==================================================================================================
00074 //=== Path errors
00075 //==================================================================================================
00076 
00077 
00078 #define eERR_invalid_path                                   ERROR_CODE(eERR_unknown_error + 0x020)
00079 DEFINE_USER_ERROR( eERR_invalid_path,
00080 "Invalid path" )
00081 
00082 
00083 //==================================================================================================
00084 //=== Resource errors
00085 //==================================================================================================
00086 
00087 
00088 #define eERR_invalid_version_resource                       ERROR_CODE(eERR_unknown_error + 0x030)
00089 DEFINE_USER_ERROR( eERR_invalid_version_resource,
00090 "Version resource is invalid" )
00091 
00092 
00093 //==================================================================================================
00094 //=== File or stream I/O errors
00095 //==================================================================================================
00096 
00097 
00098 
00099 
00100 
00101 #define eERR_async_io_in_progress                           ERROR_CODE(eERR_unknown_error + 0x040)
00102 DEFINE_USER_ERROR( eERR_async_io_in_progress,
00103 "Asynchronous I/O is now in progress; this should not have been treated as an error" )
00104 
00105 
00106 #define eERR_mismatched_async_io                            ERROR_CODE(eERR_unknown_error + 0x041)
00107 DEFINE_USER_ERROR( eERR_mismatched_async_io,
00108 "Asynchronous I/O parameters did not match previous call" )
00109 
00110 
00111 #define eERR_open_in_progress                               ERROR_CODE(eERR_unknown_error + 0x044)
00112 DEFINE_USER_ERROR( eERR_open_in_progress,
00113 "Asynchronous open is in progress" )
00114 
00115 
00116 #define eERR_async_read_in_progress                         ERROR_CODE(eERR_unknown_error + 0x045)
00117 DEFINE_USER_ERROR( eERR_async_read_in_progress,
00118 "Asynchronous read is in progress" )
00119 
00120 
00121 #define eERR_async_write_in_progress                        ERROR_CODE(eERR_unknown_error + 0x046)
00122 DEFINE_USER_ERROR( eERR_async_write_in_progress,
00123 "Asynchronous write is in progress" )
00124 
00125 
00126 
00127 #define eERR_async_file_open_not_pending                    ERROR_CODE(eERR_unknown_error + 0x047)
00128 DEFINE_USER_ERROR( eERR_async_file_open_not_pending,
00129 "Asynchronous file open completion attempt was made when the file it is already opened" )
00130 
00131 
00132 #define eERR_file_not_open                                  ERROR_CODE(eERR_unknown_error + 0x048)
00133 DEFINE_USER_ERROR( eERR_file_not_open,
00134 "A file was used without having been opened" )
00135 
00136 
00137 #define eERR_file_already_opened                            ERROR_CODE(eERR_unknown_error + 0x049)
00138 DEFINE_USER_ERROR( eERR_file_already_opened,
00139 "A file open was attempted when it is already opened" )
00140 
00141 
00142 #define eERR_end_of_file                                    ERROR_CODE(eERR_unknown_error + 0x04a)
00143 DEFINE_USER_ERROR( eERR_end_of_file,
00144 "End of file" )
00145 
00146 
00147 #define eERR_backward_seek_not_supported                    ERROR_CODE(eERR_unknown_error + 0x050)
00148 DEFINE_USER_ERROR( eERR_backward_seek_not_supported,
00149 "Backward seek not supported by stream" )
00150 
00151 
00152 //==================================================================================================
00153 //=== Regular expression errors
00154 //==================================================================================================
00155 
00156 
00157 #define eERR_bad_regexp                                     ERROR_CODE(eERR_unknown_error + 0x060)
00158 DEFINE_USER_ERROR( eERR_bad_regexp,
00159 "Invalid regular expression" )
00160 
00161 
00162 //==================================================================================================
00164 #define eERR_UT_last_builtin                                ERROR_CODE(eERR_unknown_error + 0x060)
00165 //==================================================================================================

Generated on Tue Dec 14 22:35:05 2010 for UT library by  doxygen 1.6.1