Go to the documentation of this file.
32 #ifndef TTA_EXCEPTION_HH
33 #define TTA_EXCEPTION_HH
39 #define THROW_EXCEPTION(exceptionType, message) \
40 throw exceptionType(__FILE__, __LINE__, __func__, std::string() + message)
57 std::string filename,
int linenum,
116 std::string filename,
int linenum,
133 std::string filename,
int linenum,
152 std::string filename,
int linenum,
174 std::string filename,
int linenum,
192 std::string filename,
int linenum,
210 std::string filename,
int linenum,
227 std::string filename,
245 std::string filename,
247 std::string procname,
252 std::string
path()
const;
271 std::string filename,
int linenum,
288 std::string filename,
int linenum,
307 std::string filename,
int linenum,
323 std::string filename,
int linenum,
339 std::string filename,
int linenum,
356 std::string filename,
int linenum,
373 std::string filename,
int linenum,
390 std::string filename,
int linenum,
408 std::string filename,
int linenum,
424 std::string filename,
int linenum,
441 std::string filename,
int linenum,
458 std::string filename,
int linenum,
476 std::string filename,
513 std::string filename,
535 std::string filename,
554 std::string filename,
573 std::string filename,
591 std::string filename,
608 std::string filename,
626 std::string filename,
643 std::string filename,
660 std::string filename,
954 std::string filename,
1005 std::string filename,
1022 std::string filename,
1046 std::string filename,
int linenum,
1062 std::string filename,
int linenum,
IllegalMachine(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
WrongSubclass(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
SimulationException(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
KeyNotFound(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~UnexpectedValue()
IllegalOperationBehavior(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
std::string procedureName() const
const Exception & cause() const
SymbolNotFound(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
int line_
Line number in the file.
virtual ~WrongOperandType()
virtual ~SymbolNotFound()
SimulationStillRunning(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
SimulationTimeOut(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
KeyAlreadyExists(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~IllegalMachine()
NotAvailable(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
virtual ~CannotEstimateCost()
NonexistingSyscall(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
DynamicLibraryException(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~UnreachableStream()
ErrorInExternalFile(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
void setCause(const Exception &cause)
InvalidData(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~ObjectNotInitialized()
virtual ~DynamicLibraryException()
MissingKeys(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
ParserStopRequest(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
PathNotFound(std::string filename, int linenum, std::string procname, std::string errorMessage, std::string path)
static std::string lastExceptionInfo()
Returns information of the last thrown exception.
IllegalConnectivity(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
WritePastEOF(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
ObjectAlreadyExists(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~NoKnownConversion()
ScriptExecutionFailure(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
SimulationExecutionError(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~RelationalDBException()
virtual ~BadOperationModule()
std::string fileName() const
IllegalProgram(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
NotChunkable(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~SimulationException()
SimulationCycleLimitReached(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
InstanceNotFound(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~ObjectAlreadyExists()
virtual ~IllegalRegistration()
WrongOperandType(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
void setCodeFileLineNumber(int lineNum)
UnresolvedReference(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
static std::string lastExceptionInfo_
Information of the last thrown exception for easing the debugging.
RelationalDBException(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
virtual ~SimulationCycleLimitReached()
EndOfFile(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~NonexistingSyscall()
UnreachableStream(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
static const std::string unknownProcMsg_
Used when no procedure name is given.
virtual ~IllegalConnectivity()
std::string errorMessage_
Error message.
ObjectStateLoadingException(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
const Exception * cause_
Exception that caused current exception.
FileNotFound(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
std::string errorMessageStack(bool messagesOnly=false) const
std::string file_
Name of the file where exception occurred.
virtual ~ParserStopRequest()
virtual ~ComponentAlreadyExists()
virtual ~IllegalProgram()
virtual ~ObjectStateLoadingException()
NoKnownConversion(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
IllegalCommandLine(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~ModuleRunTimeError()
NonexistingChild(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
IOException(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
CannotEstimateCost(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
std::string errorMessage() const
std::string proc_
Procedure name.
IllegalRegistration(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~IllegalParameters()
virtual ~ErrorInExternalFile()
virtual ~UnresolvedReference()
UnexpectedValue(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~MultipleInstancesFound()
SerializerException(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
TypeMismatch(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
virtual ~NonexistingChild()
InvalidName(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")
ModuleRunTimeError(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
OutOfRange(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~IllegalOperationBehavior()
Exception(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
IllegalParameters(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~SimulationStillRunning()
MultipleInstancesFound(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~SimulationTimeOut()
virtual ~SimulationExecutionError()
virtual ~IllegalCommandLine()
ObjectNotInitialized(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~ScriptExecutionFailure()
CompileError(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
virtual ~KeyAlreadyExists()
virtual ~SerializerException()
virtual ~InstanceNotFound()
ComponentAlreadyExists(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
BadOperationModule(std::string fileName, int lineNum, std::string procName=unknownProcMsg_, std::string errorMessage="")