EasyUSB::Errors::ResourceError Class Reference

Common base class for resource errors. More...

Inheritance diagram for EasyUSB::Errors::ResourceError:

EasyUSB::Errors::Error EasyUSB::Errors::BufferTooSmall EasyUSB::Errors::DeviceLost EasyUSB::Errors::DeviceNotAvailable EasyUSB::Errors::NotEnoughMemory

Public Types

enum  ResourceState {
  NotEnoughMemory = 1, FileNotFound, BufferTooSmall, InterfaceNotFound,
  InterfaceDetailNotFound, DeviceNotAvailable, DeviceLost, ConfigurationNotFound
}
 Resource error states. More...

Public Member Functions

ResourceState GetState ()
 Gets the error state.
virtual wstring GetText ()
 Gets a verbose description of the error.
 ResourceError (wstring Function, ResourceState State, unsigned int WinError=0)
 Constructor.

Protected Attributes

ResourceState m_State

Detailed Description

Common base class for resource errors.

Member Enumeration Documentation

Resource error states.

Enumerator:
NotEnoughMemory 
FileNotFound 
BufferTooSmall 
InterfaceNotFound 
InterfaceDetailNotFound 
DeviceNotAvailable 
DeviceLost 
ConfigurationNotFound 


Constructor & Destructor Documentation

EasyUSB::Errors::ResourceError::ResourceError ( wstring  Function,
ResourceState  State,
unsigned int  WinError = 0 
)

Constructor.

Parameters:
Function The function in which the error occured.
State The error state.
WinError The windows error code, if available.


Member Function Documentation

ResourceState EasyUSB::Errors::ResourceError::GetState (  )  [inline]

Gets the error state.

Returns:
The state.

virtual wstring EasyUSB::Errors::ResourceError::GetText (  )  [virtual]

Gets a verbose description of the error.

Returns:
The error text.

Reimplemented from EasyUSB::Errors::Error.

Reimplemented in EasyUSB::Errors::DeviceLost.


Field Documentation


Generated on Tue Nov 4 22:13:26 2008 for EasyUSB Connect by  doxygen 1.5.6