### IGraphicException

  IGraphicException is an exception class defined for 2-D graphics.

### IGraphicException - Member Functions and Data by Group

### Constructors & Destructor

You can construct and destruct objects of this class. You cannot assign one IGraphicException object from another.

~IGraphicException

      public:
      virtual ~IGraphicException()

  Destroys an object of class IGraphicException.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

IGraphicException

  You can create objects of this class by doing the following:

  - Using the constructor where you specify the error text, error ID, and severity.
  - Using the macros discussed in IException. The Open Class Library provides these macros to make creating exceptions easier for you.

  You can also copy an instance of this exception class.

  Overload 1
  Copy constructor.

      public:
      IGraphicException(const IGraphicException& other)

  The copy constructor is provided so that the compiler can make copies of the object during the throwing of an exception.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

  Overload 2
  Creates an exception using the given description text, error ID, and severity.

      public:
      IGraphicException( const char* errorText,
                         unsigned long errorId = 0,
                         Severity severity = IException::unrecoverable )

  errorText
    Description of the error.
  errorId
    The error ID. The default value is 0.
  severity
    The severity of the error. The default value is IException::unrecoverable.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Internal Consistency Problem

This function is called when an internal consistency problem exists.

InternalAssert

      public:
      static void InternalAssert(bool condition, const char* str)

  This function is invoked when an internal consistancy problem arises.

  condition
    The boolean expression which is being asserted.
  str
    A constant pointer to the error description string.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IGraphicException - Enumerations

EGraphicExceptionType

      enum EGraphicExceptionType { kSingularTransform,
                                   kObjectNotInitialized,
                                   kUnknownEnumValue,
                                   kBelowRange,
                                   kAboveRange,
                                   kOutOfRange,
                                   kInvalidValue,
                                   kIndexAboveRange,
                                   kIndexOutOfRange,
                                   kLessThanOne,
                                   kWrongAreaOperation,
                                   kImageFontUsedInArea,
                                   kCoordinateLimitExceeded,
                                   kParameterAssertException,
                                   kInternalAssertException,
                                   kInitializedAssertException,
                                   kImplementedAssertException,
                                   kInternalExeption,
                                   kGenericGraphicException }

  Exception types for 2-D graphics

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IGraphicException - Inherited Member Functions and Data

#### Inherited Public Functions

  IException

  -     virtual ~IException()

  -     virtual IException&
          addLocation( const IExceptionLocation& location )

  -     IException& appendText(const char* errorText)

  -     static void
          assertParameter( const char* exceptionText,
                           IExceptionLocation location )

  -     ErrorCodeGroup errorCodeGroup() const

  -     unsigned long errorId() const

  -     IException(const IException& exception)

  -     IException( const char* errorText,
                    unsigned long errorId = 0,
                    Severity severity = IException::unrecoverable )

  -     virtual int isRecoverable() const

  -     const IExceptionLocation*
          locationAtIndex( unsigned long locationIndex ) const

  -     unsigned long locationCount() const

  -     virtual IException& logExceptionData()

  -     virtual const char* name() const

  -     IException& setErrorCodeGroup(ErrorCodeGroup errorGroup)

  -     IException& setErrorId(unsigned long errorId)

  -     IException& setSeverity(Severity severity)

  -     IException& setText(const char* errorText)

  -     static IException::TraceFn*
          setTraceFunction( IException::TraceFn& traceFunction )

  -     virtual void terminate()

  -     const char* text(unsigned long indexFromTop = 0) const

  -     unsigned long textCount() const

#### Inherited Public Data

  IException

  -     static ErrorCodeGroup const baseLibrary

  -     static ErrorCodeGroup const CLibrary

  -     static ErrorCodeGroup const operatingSystem

  -     static ErrorCodeGroup const other

  -     static ErrorCodeGroup const presentationSystem

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None