D3D9::ErrorList Class Reference

C++ exception class representing D3D errors. More...

#include <dx9_wrap.h>

List of all members.

Public Member Functions

 ErrorList ()
 Construct empty error list.

 ErrorList (char *long_str)
 Construct error list by splitting long string containing all the errors separated by CR/LF pairs into individual error records and append them to the new ErrorList object.

 ~ErrorList ()
 Destroy error list and free all consumed resources such as memory.

void add_error (std::string err_text)
 Add next error report record.

int count () const
const std::string operator[] (int index) const


Detailed Description

C++ exception class representing D3D errors.

Instances of this class are thrown when errors occur during vertex/index shader compilation
or assembly process, as well as any other D3D error.

Todo:
Currently, this class simply holds list of strings describing the error(s) occurred. This is clearly not good design. Instead, hierarchy of D3D9_wrapper-related exception classes should be designed. For example D3D9::Excp_DeviceLost, D3D9::Excp_ResourceCreationFailed.


Constructor & Destructor Documentation

D3D9::ErrorList::ErrorList  )  [inline]
 

Construct empty error list.

Entries are then appended by calling the add_error() method multiple times before the object is thrown as exception.

Todo:
Ideally this must be derived from C++ main exception class, but I'm too lazy now to investigate that.. maybe later ;o)

D3D9::ErrorList::ErrorList char *  long_str  ) 
 

Construct error list by splitting long string containing all the errors separated by CR/LF pairs into individual error records and append them to the new ErrorList object.

D3D9::ErrorList::~ErrorList  )  [inline]
 

Destroy error list and free all consumed resources such as memory.


Member Function Documentation

void D3D9::ErrorList::add_error std::string  err_text  )  [inline]
 

Add next error report record.

Will be appended to the list.

int D3D9::ErrorList::count  )  const [inline]
 

Returns:
number of elements stored in the list

const std::string D3D9::ErrorList::operator[] int  index  )  const [inline]
 

Returns:
error record at specified index in the list


The documentation for this class was generated from the following files:
Generated on Sun May 1 17:34:20 2005 for RealityStrike Game Engine API by doxygen 1.3.6