Exception Class Reference
 
 
 
Exception Class Reference

#include <MaxExceptions.h>

Inheritance diagram for Exception:
MaxHeapOperators NullDereferenceException OutOfRangeException RunTimeException TabOutOfRangeException

Class Description

Base exception class for 3ds Max.

This serves as a base class for other exception classes. Instances of this class own and make their own copies of the error message.

Public Member Functions

  Exception (const MCHAR *message)
  String constructor with a specific message.
  Exception (const Exception &)
  Copy Constructor.
Exception operator= (const Exception &)
  Assignment operator.
virtual  ~Exception ()
  Destructor.
virtual const MCHAR *  What () const
  Returns the message of the exception.

Protected Member Functions

  Exception ()
  Default constructor.

Protected Attributes

MCHAR *  mMessage
  The error message. This memory is owned by an instance of this class.

Constructor & Destructor Documentation

Exception ( const MCHAR *  message ) [explicit]

String constructor with a specific message.

Exception ( const Exception )

Copy Constructor.

virtual ~Exception ( ) [virtual]

Destructor.

Exception ( ) [protected]

Default constructor.


Member Function Documentation

Exception& operator= ( const Exception )

Assignment operator.

virtual const MCHAR* What ( ) const [virtual]

Member Data Documentation

MCHAR* mMessage [protected]

The error message. This memory is owned by an instance of this class.