Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

Appendix C: Messages

Error messages are created by the macro DECLARE_MSG in files coreerr.cpp and toolerr.cpp.

The messages in Table C-1 are used by all Rogue Wave libraries. The symbols are defined in <rw/coreerr.h>. These messages belong to category "rwcore7.0".

Table C-1. Core messages.

Symbol
Message
RWCORE_EOF
"[EOF] EOF on input"
RWCORE_GENERIC
"[GENERIC] Generic error number %d; %s"
RWCORE_INVADDR
"[INVADDR] Invalid address: %lx"
RWCORE_LOCK
"[LOCK] Unable to lock memory"
RWCORE_NOINIT
"[NOINIT] Memory allocated without being initialized"
RWCORE_NOMEM
"[NOMEM] No memory"
RWCORE_OPERR
"[OPERR] Could not open file %s"
RWCORE_OUTALLOC
"[OUTALLOC] Memory released with allocations still outstanding"
RWCORE_OVFLOW
"[OVFLOW] Overflow error -> \"%.*s\" <- (%u max characters)"
RWCORE_STREAM
"[STREAM] Bad input stream"
RWCORE_SYNSTREAM
"[SYNSTREAM] Syntax error in input stream: expected %s, got %s"

The messages in Table C-2 are used by the Tools.h++ library. The symbols are defined in <rw/toolerr.h>. These messages belong to category "rwtool7.0".

Table C-2. Tools.h++ messages.

Symbol
Message
RWTOOL_ALLOCOUT
"[ALLOCOUT] %s destructor called with allocation outstanding"
RWTOOL_BADRE
"[BADRE] Attempt to use invalid regular expression"
RWTOOL_CRABS
"[CRABS] RWFactory: attempting to create abstract class with ID %hu (0x%hx)"
RWTOOL_FLIST
"[FLIST] Free list size error: expected %ld, got %ld"
RWTOOL_ID
"[ID] Unexpected class ID %hu; should be %hu"
RWTOOL_INDEX
"[INDEX] Index (%u) out of range [0->%u]"
RWTOOL_INDEXERR
"[INDEXERR] Illegal index (%u) for collection or string with %u elements"
RWTOOL_LOCK
"[LOCK] Locked object deleted"
RWTOOL_LONGINDEX
"[LONGINDEX] Long index (%lu) out of range [0->%lu]"
RWTOOL_MAGIC
"[MAGIC] Bad magic number: %ld (should be %ld)"
RWTOOL_NEVECL
"[NEVECL] Unequal vector lengths: %u versus %u"
RWTOOL_NOCREATE
"[NOCREATE] RWFactory: no create function for class with ID %hu (0x%hx)"
RWTOOL_NOPERSIST
"[NOPERSIST] Persistence not implemented for type %s."
RWTOOL_NOTALLOW
"[NOTALLOW] Function not allowed for derived class"
RWTOOL_NPOSINDEX
"[NPOSINDEX] The value RW_NPOS cannot be used as an index."
RWTOOL_READERR
"[READERR] Read error"
RWTOOL_REF
"[REF] Bad persistence reference"
RWTOOL_SEEKERR
"[SEEKERR] Seek error"
RWTOOL_STREAM
"[STREAM] Bad input stream"
RWTOOL_SUBSTRING
"[SUBSTRING] Illegal substring (%d, %u) from %u element RWCString"
RWTOOL_UNLOCK
"[UNLOCK] Improper use of locked object"
RWTOOL_WRITEERR
"[WRITEERR] Write error"


Previous fileTop of documentContentsIndexNext file
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.