tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
lsterr.h
1 /**********************************************************************
2  * File: lsterr.h (Formerly listerr.h)
3  * Description: Errors shared by list modules
4  * Author: Phil Cheatle
5  * Created: Wed Jan 23 09:10:35 GMT 1991
6  *
7  * (C) Copyright 1990, Hewlett-Packard Ltd.
8  ** Licensed under the Apache License, Version 2.0 (the "License");
9  ** you may not use this file except in compliance with the License.
10  ** You may obtain a copy of the License at
11  ** http://www.apache.org/licenses/LICENSE-2.0
12  ** Unless required by applicable law or agreed to in writing, software
13  ** distributed under the License is distributed on an "AS IS" BASIS,
14  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ** See the License for the specific language governing permissions and
16  ** limitations under the License.
17  *
18  **********************************************************************/
19 
20 #ifndef TESSERACT_CCUTIL_LSTERR_H_
21 #define TESSERACT_CCUTIL_LSTERR_H_
22 
23 #include "errcode.h" //must be last include
24 
25 const ERRCODE DONT_CONSTRUCT_LIST_BY_COPY =
26 "Can't create a list by assignment";
27 const ERRCODE DONT_ASSIGN_LISTS = "Can't assign to lists";
28 const ERRCODE SERIALISE_LINKS = "Attempted to (de)serialise a link element";
29 
30 #ifndef NDEBUG
31 
32 const ERRCODE NO_LIST = "Iterator not set to a list";
33 const ERRCODE NULL_OBJECT = "List found this = nullptr!";
34 const ERRCODE NULL_DATA = "List would have returned a nullptr data pointer";
35 const ERRCODE NULL_CURRENT = "List current position is nullptr";
36 const ERRCODE NULL_NEXT = "Next element on the list is nullptr";
37 const ERRCODE NULL_PREV = "Previous element on the list is nullptr";
38 const ERRCODE EMPTY_LIST = "List is empty";
39 const ERRCODE BAD_PARAMETER = "List parameter error";
40 const ERRCODE STILL_LINKED =
41  "Attempting to add an element with non nullptr links, to a list";
42 
43 #endif // !NDEBUG
44 #endif // TESSERACT_CCUTIL_LSTERR_H_
Definition: errcode.h:69