iso::base::Exception Class Reference

class for handling all kinds of run time errors More...

#include <iso_base_exception.h>

List of all members.

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 Stringmessage () const
 return exception message
const Stringtype () 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, StringsExceptionTypes
 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


Detailed Description

class for handling all kinds of run time errors

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.


Constructor & Destructor Documentation

Exception::Exception ( String  pType,
String  pMessage,
String  pSourceFile,
String  pFunction,
int  pLineNumber 
)

parameter based contstructor

Parameters:
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
Constructor for specific exception types

Exception::Exception ( String  pMessage,
String  pSourceFile,
String  pFunction,
int  pLineNumber 
)

parameter based contstructor

Parameters:
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
Constructor for generic exception types

Exception::Exception ( const Exception pException  ) 

copy constructor

Parameters:
pException exception

Exception::~Exception (  )  [virtual]

destructor

Exception::Exception (  )  [protected]

default constructur


Member Function Documentation

const String & Exception::message (  )  const

return exception message

Returns:
exception message

const String & Exception::type (  )  const

return exception type

Returns:
exception type

String Exception::info (  )  const

obtain textual exception information

Returns:
String containing exception information

void Exception::initExceptionTypes (  )  [static, protected]

initialize exception types


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  pOstream,
const Exception pException 
) [friend]

print exception information


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 13:50:00 2011 for iso_base by  doxygen 1.5.1