• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
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 = 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";
40 const ERRCODE STILL_LINKED =
41 "Attemting to add an element with non NULL links, to a list";
42 #endif
43 #endif
44