errno.hpp

00001 /*
00002 
00003 Copyright (c) 2002-2005, Yauheni Akhotnikau
00004 All rights reserved.
00005 
00006 Redistribution and use in source and binary forms, with or without
00007 modification, are permitted provided that the following conditions are met:
00008 
00009 - Redistributions of source code must retain the above copyright notice, this
00010 list of conditions and the following disclaimer.
00011 
00012 - Redistributions in binary form must reproduce the above copyright notice, this
00013 list of conditions and the following disclaimer in the documentation and/or
00014 other materials provided with the distribution.
00015 
00016 - The name of the author may not be used to endorse or promote products derived
00017 from this software without specific prior written permission.
00018 
00019 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
00020 WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00021 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
00022 EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00023 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
00024 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00025 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00026 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
00027 IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
00028 OF SUCH DAMAGE.
00029 
00030 */
00031 
00032 /*
00033   ObjESSty-1
00034 */
00035 #if !defined( _OESS_1__DB__STORAGE__ERRNO_HPP_ )
00036 #define _OESS_1__DB__STORAGE__ERRNO_HPP_
00037 
00038 #include <oess_1/defs/h/errno_range.hpp>
00039 
00040 namespace oess_1 {
00041 
00042 namespace db {
00043 
00044 namespace storage {
00045 
00046 namespace err {
00047 
00048 const int c_range_min = oess_1::impl::c_errno__db__storage__min;
00049 const int c_range_max = c_range_min + 1000;
00050 
00051 // Хранилище уже открыто.
00052 const int c_storage_open = c_range_min + 1;
00053 
00054 // Транзакция хранилища не начата.
00055 const int c_trans_not_started = c_range_min + 2;
00056 
00057 // Транзакция хранилища начата.
00058 const int c_trans_started = c_range_min + 3;
00059 
00060 // Неверный номер страницы.
00061 const int c_invalid_page_index = c_range_min + 4;
00062 
00063 // Возможное нарушение целостности хранилища.
00064 const int c_storage_damage_possible = c_range_min + 5;
00065 
00066 // Хранилище открыто в режиме read-only.
00067 const int c_read_only_mode = c_range_min + 6;
00068 
00069 // Хранилище не открыто.
00070 const int c_storage_not_open = c_range_min + 7;
00071 
00072 // Индекс потока уже открыт.
00073 const int c_stream_index_open = c_range_min + 8;
00074 
00075 // Индекс потока не открыт.
00076 const int c_stream_index_not_open = c_range_min + 9;
00077 
00078 // Не допустимый номер элемента индекса первого уровня.
00079 const int c_invalid_ind1_item_ordinal = c_range_min + 10;
00080 
00081 // Не ожиданная ошибка.
00082 const int c_unexpected = c_range_min + 11;
00083 
00084 // Попытка использовать результат поиска в индексе,
00085 // равный NULL.
00086 const int c_null_index_search_result = c_range_min + 12;
00087 
00088 // Поток уже открыт.
00089 const int c_stream_open = c_range_min + 13;
00090 
00091 // Поток не открыт.
00092 const int c_stream_not_open = c_range_min + 14;
00093 
00094 // Попытка прочитать из потока сущность большего размера,
00095 // чем размер сущности в потоке.
00096 const int c_entity_too_large = c_range_min + 15;
00097 
00098 // Поток полностью заполнен.
00099 const int c_stream_full = c_range_min + 16;
00100 
00101 // Не допустимое значение заголовка блока.
00102 const int c_invalid_block_header = c_range_min + 17;
00103 
00105 const int c_stream_is_not_in_directory = c_range_min + 18;
00106 
00107 // Этот поток не принадлежит данному хранилищу.
00108 const int c_unknown_stream = c_range_min + 19;
00109 
00110 // Страница не найдена в кэше.
00111 const int c_page_not_in_cache = c_range_min + 20;
00112 
00114 const int c_page_already_in_cache = c_range_min + 21;
00115 
00117 const int c_cache_not_initialized = c_range_min + 22;
00118 
00120 const int c_trx_invalid_lists = c_range_min + 23;
00121 
00124 const int c_trx_invalid_mismatch_block_size = c_range_min + 24;
00125 
00127 const int c_trace_stream_open = c_range_min + 25;
00128 
00130 const int c_trace_file_not_found = c_range_min + 26;
00131 
00133 const int c_trace_file_found = c_range_min + 27;
00134 
00136 const int c_trace_stream_not_open = c_range_min + 28;
00137 
00140 const int c_read_only_trace_stream = c_range_min + 29;
00141 
00144 
00148 const int c_insufficent_trace_info = c_range_min + 31;
00149 
00151 
00163 const int c_invalid_page_block_count = c_range_min + 32;
00164 
00166 const int c_trx_zlib_failure = c_range_min + 33;
00167 
00169 const int c_trx_unknown_compression_mode = c_range_min + 34;
00170 
00172 const int c_trx_file_search_failed = c_range_min + 35;
00173 
00175 const int c_no_more_free_segments = c_range_min + 36;
00176 
00178 
00186 const int c_invalid_segment_ordinal = c_range_min + 37;
00187 
00189 const int c_segment_already_full = c_range_min + 38;
00190 
00192 const int c_segment_already_free = c_range_min + 39;
00193 
00195 const int c_block_not_allocated = c_range_min + 40;
00196 
00198 
00203 const int c_invalid_chain_link_ordinal = c_range_min + 41;
00204 
00206 const int c_invalid_sizes = c_range_min + 42;
00207 
00209 
00215 const int c_invalid_area_ordinal = c_range_min + 43;
00216 
00218 const int c_area_already_full = c_range_min + 44;
00219 
00221 const int c_area_already_free = c_range_min + 45;
00222 
00225 const int c_no_more_free_areas = c_range_min + 47;
00226 
00228 
00232 const int c_stream_name_not_unique = c_range_min + 48;
00233 
00235 const int c_invalid_trace_compression_mode = c_range_min + 49;
00236 
00238 
00246 const int c_invalid_trace_mode = c_range_min + 50;
00247 
00250 const int c_trace_stream_full = c_range_min + 51;
00251 
00256 const int c_no_actual_snapshot = c_range_min + 52;
00257 
00266 const int c_unable_to_rename_file = c_range_min + 53;
00267 
00277 const int c_db_page_count_mismatch = c_range_min + 54;
00278 
00292 const int c_no_traces_for_snapshot = c_range_min + 55;
00293 
00300 const int c_zero_total_page_count = c_range_min + 56;
00301 
00302 } /* namespace err */
00303 
00304 } /* namespace storage */
00305 
00306 } /* namespace db */
00307 
00308 } /* namespace oess_1 */
00309 
00310 #endif

Документация по ObjESSty. Последние изменения: Fri Oct 13 18:35:35 2006. Создано системой  doxygen 1.4.7
Hosted by uCoz