Scid  4.6.5
error.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////
2 //
3 // FILE: error.h
4 // Error codes
5 //
6 // Part of: Scid (Shane's Chess Information Database)
7 // Version: 1.6
8 //
9 // Notice: Copyright (c) 1999 Shane Hudson. all rights reserved.
10 // Copyright (c) 2014 Benini Fulvio. all rights reserved.
11 //
12 // Author: Shane Hudson (sgh@users.sourceforge.net)
13 //
14 ///////////////////////////////////////////////////////////////////////////
15 
16 
17 #ifndef SCID_ERROR_H
18 #define SCID_ERROR_H
19 
20 typedef unsigned short errorT;
21 
22 const errorT
23  OK = 0,
24 
25  // General Error:
26  ERROR = 1,
29 
30  // File I/O
43 
44  // Memory Allocation, corrupt data
47 
48  // Database errors
49  ERROR_Full = 201,
56 
58 
59  // Position errors
63 
64  // Game Errors
65  ERROR_Game = 400,
71  ERROR_Decode = 406,
73 
74  // Scan Errors
75  ERROR_PGNTag = 501,
76 
77  // Buffer errors
80 
81  // Codec errors
83 
84 #endif // #ifdef SCID_ERROR_H
85 
86 ///////////////////////////////////////////////////////////////////////////
87 // EOF: error.h
88 ///////////////////////////////////////////////////////////////////////////
89 
const errorT ERROR_CodecUnsupFeat
Definition: error.h:82
const errorT ERROR_Full
Definition: error.h:49
const errorT ERROR_EndOfMoveList
Definition: error.h:66
const errorT ERROR_OldScidVersion
Definition: error.h:40
const errorT OK
Definition: error.h:23
const errorT ERROR_BadMagic
Definition: error.h:35
const errorT ERROR_FileInUse
Definition: error.h:37
const errorT ERROR_FileWrite
Definition: error.h:32
const errorT ERROR_PGNTag
Definition: error.h:75
const errorT ERROR_BadArg
Definition: error.h:28
const errorT ERROR_NameTooLong
Definition: error.h:55
const errorT ERROR_NameNotFound
Definition: error.h:50
const errorT ERROR_Empty
Definition: error.h:52
const errorT ERROR_NoVariation
Definition: error.h:68
const errorT ERROR_MallocFailed
Definition: error.h:45
const errorT ERROR_NameExists
Definition: error.h:51
const errorT ERROR_EmptyVariation
Definition: error.h:69
const errorT ERROR_BufferRead
Definition: error.h:79
const errorT ERROR_InvalidFEN
Definition: error.h:60
const errorT ERROR_CompactRemove
Definition: error.h:42
const errorT ERROR_FileRead
Definition: error.h:33
const errorT ERROR_UserCancel
Definition: error.h:27
const errorT ERROR_NoMatchFound
Definition: error.h:53
const errorT ERROR_VariationLimit
Definition: error.h:70
const errorT ERROR_NameBaseEmpty
Definition: error.h:52
const errorT ERROR_StartOfMoveList
Definition: error.h:67
const errorT ERROR_InvalidMove
Definition: error.h:61
const errorT ERROR_Game
Definition: error.h:65
const errorT ERROR_GameFull
Definition: error.h:72
const errorT ERROR_CorruptData
Definition: error.h:46
unsigned short errorT
Definition: error.h:20
const errorT ERROR_FileVersion
Definition: error.h:39
Definition: errors.tcl:17
const errorT ERROR_FileReadOnly
Definition: error.h:41
const errorT ERROR_FileSeek
Definition: error.h:34
const errorT ERROR_FileNotOpen
Definition: error.h:36
const errorT ERROR_Decode
Definition: error.h:71
const errorT ERROR_IndexFull
Definition: error.h:57
const errorT ERROR_Corrupt
Definition: error.h:46
const errorT ERROR_FileMode
Definition: error.h:38
const errorT ERROR_PieceCount
Definition: error.h:62
const errorT ERROR_BufferFull
Definition: error.h:78
const errorT ERROR_NameDataLoss
Definition: error.h:54
const errorT ERROR_NotFound
Definition: error.h:50
const errorT ERROR_FileOpen
Definition: error.h:31
const errorT ERROR_Exists
Definition: error.h:51