#include <iso_base_exception.h>
Public Member Functions | |
| Exception (String pType, String pMessage, String pSourceFile, String pFunction, int pLineNumber) | |
| parameter based contstructor | |
| Exception (String pMessage, String pSourceFile, String pFunction, int pLineNumber) | |
| parameter based contstructor | |
| Exception (const Exception &pException) | |
| copy constructor | |
| virtual | ~Exception () |
| destructor | |
| const String & | message () const |
| return exception message | |
| const String & | type () const |
| return exception type | |
| String | info () const |
| obtain textual exception information | |
Protected Member Functions | |
| Exception () | |
| default constructur | |
Static Protected Member Functions | |
| static void | initExceptionTypes () |
| initialize exception types | |
Protected Attributes | |
| String | mType |
| exception type | |
| String | mMessage |
| additional textual exception information | |
| String | mSourceFile |
| source file in which exception occurred | |
| String | mFunction |
| function in which exception occurred | |
| int | mLineNumber |
| line number within source file at which exception occurred | |
Static Protected Attributes | |
| static QHash< String, String > | sExceptionTypes |
| exception types | |
| static bool | sExceptionTypesInitialized |
| reflects whether exception types have been initialized | |
Friends | |
| std::ostream & | operator<< (std::ostream &pOstream, const Exception &pException) |
| print exception information | |
handling all kinds of run time errors
defines the following exceptions: ERR_OUT_OF_BOUNDS : Out Of Bounds ERR_FILE_OPEN_FAILED : Failed To Open File ERR_FILE_CLOSE_FAILED : Failed To Close File ERR_FILE_WRITE_FAILED : Failed To Write to File ERR_UNKNOWN_FILE_FORMAT : Unknown File Format ERR_CORRUPT_FILE_FORMAT : Corrupt File Format ERR_NOT_A_NUMBER : Not a Number ERR_NAME_CONFLICT : Name Conflict ERR_NAME_UNKNOWN : Name Unkown ERR_FUNCTION_UNKNOWN : Function Unkown ERR_FUNCTION_MISMATCH : Function Mismatch ERR_TYPE_MISMATCH : Type Mismatch ERROR : Generic Error blank : Unknown Exception
Created by Daniel Bisig on 5/17/06. Copyright 2006 Daniel Bisig All rights reserved.
| Exception::Exception | ( | String | pType, | |
| String | pMessage, | |||
| String | pSourceFile, | |||
| String | pFunction, | |||
| int | pLineNumber | |||
| ) |
parameter based contstructor
| pType | type of exception | |
| pMessage | addition text describing exception | |
| pSourceFile | source code file name in which exception occurred | |
| pFunction | function name in which exception occurred | |
| pLineNumber | line number within source file at which exception occurred |
parameter based contstructor
| pMessage | addition text describing exception | |
| pSourceFile | source code file name in which exception occurred | |
| pFunction | function name in which exception occurred | |
| pLineNumber | line number within source file at which exception occurred |
| Exception::Exception | ( | const Exception & | pException | ) |
copy constructor
| pException | exception |
| Exception::~Exception | ( | ) | [virtual] |
destructor
| Exception::Exception | ( | ) | [protected] |
default constructur
| const String & Exception::message | ( | ) | const |
return exception message
| const String & Exception::type | ( | ) | const |
return exception type
| String Exception::info | ( | ) | const |
obtain textual exception information
| void Exception::initExceptionTypes | ( | ) | [static, protected] |
initialize exception types
| std::ostream& operator<< | ( | std::ostream & | pOstream, | |
| const Exception & | pException | |||
| ) | [friend] |
print exception information
QHash< String, String > Exception::sExceptionTypes [static, protected] |
exception types
association from type to type description
bool Exception::sExceptionTypesInitialized [static, protected] |
reflects whether exception types have been initialized
String iso::base::Exception::mType [protected] |
exception type
String iso::base::Exception::mMessage [protected] |
additional textual exception information
String iso::base::Exception::mSourceFile [protected] |
source file in which exception occurred
String iso::base::Exception::mFunction [protected] |
function in which exception occurred
int iso::base::Exception::mLineNumber [protected] |
line number within source file at which exception occurred
1.5.1