All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
lsterr.h
Go to the documentation of this file.
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 #include "errcode.h" //must be last include
21 
22 #ifndef LSTERR_H
23 #define LSTERR_H
24 
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 = NULL!";
34 const ERRCODE NULL_DATA = "List would have returned a NULL data pointer";
35 const ERRCODE NULL_CURRENT = "List current position is NULL";
36 const ERRCODE NULL_NEXT = "Next element on the list is NULL";
37 const ERRCODE NULL_PREV = "Previous element on the list is NULL";
38 const ERRCODE EMPTY_LIST = "List is empty";
39 const ERRCODE BAD_PARAMETER = "List parameter error";
41 "Attemting to add an element with non NULL links, to a list";
42 #endif
43 #endif
const ERRCODE DONT_ASSIGN_LISTS
Definition: lsterr.h:27
const ERRCODE BAD_PARAMETER
Definition: lsterr.h:39
const ERRCODE NO_LIST
Definition: lsterr.h:32
const ERRCODE NULL_NEXT
Definition: lsterr.h:36
const ERRCODE NULL_CURRENT
Definition: lsterr.h:35
const ERRCODE NULL_PREV
Definition: lsterr.h:37
const ERRCODE NULL_DATA
Definition: lsterr.h:34
const ERRCODE EMPTY_LIST
Definition: lsterr.h:38
const ERRCODE SERIALISE_LINKS
Definition: lsterr.h:28
const ERRCODE STILL_LINKED
Definition: lsterr.h:40
const ERRCODE NULL_OBJECT
Definition: lsterr.h:33
const ERRCODE DONT_CONSTRUCT_LIST_BY_COPY
Definition: lsterr.h:25