class OmException
|
This file includes all needed declarations and definitions for the program. More... |
|
|
Public Members
- enum Type {FileError, NotIterating, EmptyString, Disabled, MalformedNode, NullPointer, OutOfRange, Underlying, UnsupportedBase, Other }
- explicit OmException (Type type_in, const char * details_in="", OmStatus status_in=OmSuccessStatus)
- virtual ~OmException ()
- virtual Type getType () const
- virtual const char * getDetails () const
- virtual OmStatus getStatus () const
- virtual const char * translate (short verbose_in=2)
- virtual const char * retranslate () const
- static void checkUnsupportedBase (unsigned int base_in)
- static void checkFileError (const FILE * file_in)
- static void checkNotIterating (bool done_in)
- static void checkEmptyString (const char * string_in)
- static void checkEmptyString (const wchar_t * string_in)
- static void checkDisabled (bool disabled_in, const char * details_in)
- static void checkMalformedNode (bool malformed_in, const char * details_in)
- static void checkNullPointer (const void * pointer_in)
- static void checkOutOfRange (bool outOfRange_in)
- static void checkUnderlying (OMstatus status_in)
Detailed Description
This file includes all needed declarations and definitions for the program.
Including this unique file should allow the use of the entire OpenMath C++ library.
enum Type {FileError, NotIterating, EmptyString, Disabled, MalformedNode, NullPointer, OutOfRange, Underlying, UnsupportedBase, Other }
|
The types of exceptions.
explicit OmException (Type type_in, const char * details_in="", OmStatus status_in=OmSuccessStatus)
|
Constructor.
[virtual]
Destructor.
[const virtual]
Get the type.
const char * getDetails ()
|
[const virtual]
Get the details.
[const virtual]
Get the status.
const char * translate (short verbose_in=2)
|
[virtual]
Translate the carried information explaining the situation.
The verbose parameter can be:
- 0 to be silent
- 1 to get a simple message
- 2 to get a full message with details
const char * retranslate ()
|
[const virtual]
Get the result of the last translation.
void checkUnsupportedBase (unsigned int base_in)
|
[static]
Check for unsupported base.
void checkFileError (const FILE * file_in)
|
[static]
Check for file error.
void checkNotIterating (bool done_in)
|
[static]
Check for iteration status.
void checkEmptyString (const char * string_in)
|
[static]
Check for empty string.
void checkEmptyString (const wchar_t * string_in)
|
[static]
Check for empty wstring.
void checkDisabled (bool disabled_in, const char * details_in)
|
[static]
Check for disabled operation.
void checkMalformedNode (bool malformed_in, const char * details_in)
|
[static]
Check for malformed node.
void checkNullPointer (const void * pointer_in)
|
[static]
Check for null pointer.
void checkOutOfRange (bool outOfRange_in)
|
[static]
Check for out of range.
void checkUnderlying (OMstatus status_in)
|
[static]
Check for an underlying error from the C library.
Generated by: root@localhost.localdomain on Tue Oct 12 21:02:30 199. |