Crazy Eddies GUI System  0.7.1
Public Member Functions | List of all members
CEGUI::InvalidRequestException Class Reference

Exception class used when some impossible request was made of the system. More...

+ Inheritance diagram for CEGUI::InvalidRequestException:
+ Collaboration diagram for CEGUI::InvalidRequestException:

Public Member Functions

 InvalidRequestException (const String &message, const String &file="unknown", int line=0)
 Constructor that is responsible for logging the invalid request exception by calling the base class. More...
 
- Public Member Functions inherited from CEGUI::Exception
virtual ~Exception (void) throw ()
 Virtual destructor.
 
const StringgetMessage (void) const
 Return a reference to the String object describing the reason for the exception being thrown. More...
 
const StringgetName () const
 Return a reference to the String object containing the exception name (i.e. class type). More...
 
const StringgetFileName (void) const
 Return a reference to the String object containing the name of the file where the exception occurred. More...
 
int getLine (void) const
 Return the line number where the exception occurred. More...
 
const char * what () const throw ()
 

Additional Inherited Members

- Protected Member Functions inherited from CEGUI::Exception
 Exception (const String &message="", const String &name="CEGUI::Exception", const String &filename="", int line=0)
 Protected constructor that prevents instantiations (users should employ derived exception classes instead) and that is responsible for logging the exception. More...
 
- Protected Attributes inherited from CEGUI::Exception
String d_message
 Holds the reason for the exception being thrown.
 
String d_filename
 Holds the name of the file where the exception occurred.
 
String d_name
 Holds the class name of the exception (e.g. CEGUI::ObjectInUseException)
 
int d_line
 Holds the line number where the exception occurred.
 
String d_what
 Holds the default error message.
 

Detailed Description

Exception class used when some impossible request was made of the system.

Constructor & Destructor Documentation

CEGUI::InvalidRequestException::InvalidRequestException ( const String message,
const String file = "unknown",
int  line = 0 
)
inline

Constructor that is responsible for logging the invalid request exception by calling the base class.

Parameters
messageString object describing the reason for the invalid request exception being thrown.
filenameString object containing the name of the file where the invalid request exception occurred.
lineInteger representing the line number where the invalid request exception occurred.
Remarks
The invalid request exception name is automatically passed to the base class as "CEGUI::InvalidRequestException".