Version: 5.1.6

multipr.RuntimeException Class Reference

#include <MULTIPR_Exceptions.hxx>

Inheritance diagram for multipr.RuntimeException:
Inheritance graph

Public Member Functions

 RuntimeException (const std::string &pMsg, const std::string &pFile="unknown", int pLine=0)
 Constructor.
void dump (std::ostream &pOs) const
 Dumps info about this exception to the given output stream.

Data Fields

std::string mMsg
 Message associated with this exception.
std::string mFile
 Name of the source file where the problem occurs (macro __FILE__ can be used to retrieve this field).
int mLine
 Number of the line where the problem occurs (macro __LINE__ can be used to retrieve this field).
std::string mType
 Type of this exception.

Constructor & Destructor Documentation

multipr.RuntimeException.RuntimeException ( const std::string &  pMsg,
const std::string &  pFile = "unknown",
int  pLine = 0 
)

Constructor.

Build a new RuntimeException.

Parameters:
pMsg message to be associated with this exception.
pFile name of the file where the probem occur (you can use the macro __FILE__); "unknown" by default.
pLine number of the line where the probem occur (you can use the macro __LINE__); 0 by default.

References multipr.RuntimeException.mFile, multipr.RuntimeException.mLine, multipr.RuntimeException.mMsg, and multipr.RuntimeException.mType.


Member Function Documentation

void multipr.RuntimeException.dump ( std::ostream &  pOs  )  const

Dumps info about this exception to the given output stream.

References multipr.RuntimeException.mFile, multipr.RuntimeException.mLine, multipr.RuntimeException.mMsg, and multipr.RuntimeException.mType.


Field Documentation

Message associated with this exception.

Name of the source file where the problem occurs (macro __FILE__ can be used to retrieve this field).

Number of the line where the problem occurs (macro __LINE__ can be used to retrieve this field).

Type of this exception.