Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

srm::Exception Class Reference

General exception handling class. More...

#include <Exception.h>

List of all members.

Public Types

enum  { MAX_EXCEPTION_STR_LEN = 2000 }

Public Member Functions

 Exception (SRM_Status_Code code)
 Create exception with code only, no details description.

 Exception (SRM_Status_Code code, const char *what)
 Create exception with code and full description.

 Exception (const Exception &other)
 Create exception as a copy of another.

virtual ~Exception ()
 Destructor.

Exceptionoperator= (const Exception &other)
 Copy exception data from another.

virtual void setCodeAndWhat (SRM_Status_Code code, const char *what)
 Set the code and description information.

virtual SRM_Status_Code getCode () const
 Returns the exception code value.

virtual const char * getWhat () const
 Returns the exception description string.


Protected Attributes

SRM_Status_Code _code
 Exception error code.

char _what [MAX_EXCEPTION_STR_LEN+1]
 Exception error description.


Detailed Description

General exception handling class.

This is the general exception class thrown from failed methods. An exception typically contains an error code and a description string.

Author:
Warren Macchi (Accent Geographic)

Definition at line 51 of file Exception.h.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
MAX_EXCEPTION_STR_LEN  Maximum description string length in an Exception.

Definition at line 55 of file Exception.h.


The documentation for this class was generated from the following file:
Spatial Reference Model C++ API Version 4.1 - 26 Jun 2006
Copyright © 2006 SEDRIS Docs by Doxygen 1.3.2