OpenASIP  2.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
Exception Class Reference

#include <Exception.hh>

Inheritance diagram for Exception:
Inheritance graph
Collaboration diagram for Exception:
Collaboration graph

Public Member Functions

 Exception (std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
 
virtual ~Exception ()
 
std::string fileName () const
 
int lineNum () const
 
std::string procedureName () const
 
std::string errorMessage () const
 
std::string errorMessageStack (bool messagesOnly=false) const
 
void setCause (const Exception &cause)
 
bool hasCause () const
 
const Exceptioncause () const
 

Static Public Member Functions

static std::string lastExceptionInfo ()
 Returns information of the last thrown exception. More...
 

Static Public Attributes

static const std::string unknownProcMsg_ = "(unknown)"
 Used when no procedure name is given. More...
 

Private Attributes

std::string file_
 Name of the file where exception occurred. More...
 
int line_
 Line number in the file. More...
 
std::string proc_
 Procedure name. More...
 
std::string errorMessage_
 Error message. More...
 
const Exceptioncause_
 Exception that caused current exception. More...
 

Static Private Attributes

static std::string lastExceptionInfo_ = ""
 Information of the last thrown exception for easing the debugging. More...
 

Detailed Description

Base class for all exceptions of the system.

It contains information common to all exceptions that identifies the spot in the source code in which the execption was thrown: name of the source file, line number and name of the procedure. Also, it may contain an error message.

Definition at line 54 of file Exception.hh.

Constructor & Destructor Documentation

◆ Exception()

Exception::Exception ( std::string  filename,
int  linenum,
std::string  procname = unknownProcMsg_,
std::string  errorMessage = "" 
)

The constructor.

Parameters
filenameName of the file in which the exception occurred.
linenumLine number in the file.
procnameName of the procedure.
errorMessageError message.

Definition at line 57 of file Exception.cc.

61  :
62  file_(filename), line_(linenum), proc_(procname),
65  filename + ", line " + Conversion::toString(linenum) + ". Message: " +
67 }

References errorMessage(), lastExceptionInfo_, and Conversion::toString().

Referenced by setCause().

Here is the call graph for this function:

◆ ~Exception()

Exception::~Exception ( )
virtual

The destructor. Nothing specific to do in the destructor.

Definition at line 116 of file Exception.cc.

116  {
117 }

Member Function Documentation

◆ cause()

const Exception & Exception::cause ( ) const

Returns Exception that caused throwing current exception.

Returns
Exception that caused throwing current exception.

Definition at line 95 of file Exception.cc.

95  {
96  return *cause_;
97 }

References cause_.

Referenced by errorMessageStack().

◆ errorMessage()

string Exception::errorMessage ( ) const

Returns the exception's error message.

Definition at line 123 of file Exception.cc.

123  {
124  return errorMessage_;
125 }

References errorMessage_.

Referenced by DSDBManager::addApplication(), DSDBManager::addArchitecture(), ProGe::NetlistGenerator::addBaseRFToNetlist(), CodeCompressorPlugin::addBitsForDstRegisterField(), CodeCompressorPlugin::addBitsForICField(), HDB::HDBManager::addBooleanColumn(), ExecutionTrace::addBusActivity(), HDB::HDBManager::addBusCostEstimationData(), HDB::HDBManager::addBusEntry(), ExecutionTrace::addBusWriteCount(), ExecutionTrace::addConcurrentRegisterFileAccessCount(), DSDBManager::addConfiguration(), DesignSpaceExplorer::addConfToDSDB(), HDB::HDBManager::addCostEstimationData(), HDB::HDBManager::addCostFunctionPlugin(), HDB::HDBManager::addDataPortsToImplementation(), HDB::HDBManager::addFUArchitecture(), HDB::HDBManager::addFUCostEstimationData(), HDB::HDBManager::addFUEntry(), HDB::HDBManager::addFUExternalPortsToImplementation(), HDB::HDBManager::addFUImplementation(), ExecutionTrace::addFunctionUnitOperationTriggerCount(), ProGe::NetlistGenerator::addFUToNetlist(), DSDBManager::addImplementation(), ImmediateGenerator::addInsTemplate(), ExecutionTrace::addInstructionExecution(), ExecutionTrace::addInstructionExecutionCount(), CodeSectionCreator::addMove(), HDB::HDBManager::addPortsAndBindingsToFUArchitecture(), ExecutionTrace::addProcedureAddressRange(), TTAProgram::TPEFProgramFactory::addProcedures(), ProcedureTransferTracker::addProcedureTransfer(), ExecutionTrace::addRegisterAccessCount(), TTAMachine::ExecutionPipeline::addResourceUsage(), HDB::HDBManager::addRFArchitecture(), HDB::HDBManager::addRFCostEstimationData(), HDB::HDBManager::addRFEntry(), HDB::HDBManager::addRFExternalPortsToImplementation(), HDB::HDBManager::addRFImplementation(), HDB::HDBManager::addSocketCostEstimationData(), HDB::HDBManager::addSocketEntry(), ExecutionTrace::addSocketWriteCount(), ImmediateGenerator::addSplitInsTemplate(), MachineStateBuilder::addVirtualOpcodeSettingPortsToFU(), TTAMachine::Bus::adjustSegmentChain(), ResourceConstraintAnalyzer::analyzeRegisterAntideps(), DSDBManager::applicationCostEstimatesByConf(), DSDBManager::applicationCount(), DSDBManager::applicationIDs(), DSDBManager::applicationPath(), DSDBManager::archConfigurationIDs(), DSDBManager::architectureId(), DSDBManager::architectureIDs(), DSDBManager::architectureString(), DSDBManager::areaEstimate(), MachineStateBuilder::bindPortsToOperands(), HDB::HDBManager::blockSourceFile(), BridgeEncoding::BridgeEncoding(), SimProgramBuilder::build(), MachineStateBuilder::buildMachineState(), HDB::HDBManager::busCostEstimationData(), HDB::HDBManager::busCostEstimationDataIDs(), HDB::HDBManager::busCostEstimationDataList(), HDB::HDBManager::busEntryIDs(), ExecutionPipelineResource::canAssignDestination(), HDB::HDBManager::canRemoveFUArchitecture(), HDB::HDBManager::canRemoveRFArchitecture(), SimpleBrokerDirector::canTransportImmediate(), ProGe::ProcessorGenerator::checkIULatencies(), TPEF::RawSection::chunk(), Assembler::compile(), TTAMachine::Component::Component(), DEFAULT_Compressor::compress(), InstructionDictionary::compress(), DSDBManager::configuration(), DSDBManager::configurationId(), DSDBManager::configurationIDs(), UniversalMachine::construct(), OSEdTreeView::constructTree(), HDB::HDBManager::containsFUArchitecture(), HDB::HDBManager::containsImplementationFile(), HDB::HDBManager::containsOperation(), HDB::HDBManager::containsRFArchitecture(), ProGe::BlockSourceCopier::copyFiles(), copyImageToTb(), HDB::HDBManager::costEstimationData(), HDB::HDBManager::costEstimationDataIDs(), HDB::HDBManager::costEstimationDataValue(), HDB::HDBManager::costFunctionPluginByID(), HDB::HDBManager::costFunctionPluginDataIDs(), HDB::HDBManager::costFunctionPluginIDs(), HDB::HDBManager::createCostFunctionOfFU(), HDB::HDBManager::createCostFunctionOfRF(), OSEd::createDefaultOptions(), HDBEditorMainFrame::createHDB(), HDB::HDBManager::createImplementationOfFU(), HDB::HDBManager::createNew(), DSDBManager::createNew(), LLVMBackend::createPlugin(), DSDBManager::cycleCount(), OperationPimpl::dag(), DefaultICDecoderEstimator::delayOfBus(), DefaultICDecoderEstimator::delayOfSocket(), HDBEditorModifyCmd::Do(), AddFUArchFromADFCmd::Do(), AddRFImplementationCmd::Do(), AddFUImplementationCmd::Do(), SaveOptionsCmd::Do(), ProximQuitCmd::Do(), OSEdAddOperationCmd::Do(), PasteComponentCmd::Do(), ProcessorImplementationWindow::doSaveIDF(), DSDBManager::DSDBManager(), Encoding::Encoding(), DSDBManager::energyEstimate(), errorMessageStack(), StrictMatchFUEstimator::estimateArea(), StrictMatchRFEstimator::estimateArea(), StrictMatchFUEstimator::estimateEnergy(), StrictMatchRFEstimator::estimateEnergy(), InterpolatingFUEstimator::estimateEnergy(), InterpolatingRFEstimator::estimateEnergy(), DefaultICDecoderEstimator::estimateICArea(), DefaultICDecoderEstimator::estimateICDelayOfPath(), DefaultICDecoderEstimator::estimateICEnergy(), StrictMatchFUEstimator::estimateMaximumComputationDelay(), StrictMatchRFEstimator::estimateMaximumComputationDelay(), StrictMatchFUEstimator::estimatePortReadDelay(), StrictMatchRFEstimator::estimatePortReadDelay(), StrictMatchFUEstimator::estimatePortWriteDelay(), StrictMatchRFEstimator::estimatePortWriteDelay(), CostEstimator::Estimator::estimateSocketToSocketDelayOfPath(), Exception(), ProgCommand::execute(), SettingCommand::execute(), CmdTrigger::execute(), Evaluate::explore(), MinimalOpSet::explore(), RemoveUnconnectedComponents::explore(), GrowMachine::explore(), ComponentAdder::explore(), ImplementationSelector::explore(), ImmediateGenerator::explore(), SimpleICOptimizer::explore(), DataSectionCreator::finalize(), HDB::HDBManager::fuArchitectureID(), HDB::HDBManager::fuArchitectureIDs(), HDB::HDBManager::fuArchitectureIDsByOperationSet(), HDB::HDBManager::fuByEntryID(), HDB::HDBManager::fuCostEstimationData(), HDB::HDBManager::fuCostEstimationDataIDs(), CostEstimator::Estimator::fuCostFunctionPluginOfImplementation(), HDB::HDBManager::fuEntriesByArchitecture(), HDB::HDBManager::fuEntryHasArchitecture(), HDB::HDBManager::fuEntryIDOfImplementation(), HDB::HDBManager::fuEntryIDs(), FUGuardEncoding::FUGuardEncoding(), CostEstimator::Estimator::functionUnitArea(), CostEstimator::Estimator::functionUnitEnergy(), CostEstimator::Estimator::functionUnitMaximumComputationDelay(), ExecutionTrace::functionUnitOperationTriggerCounts(), CostEstimator::Estimator::functionUnitPortReadDelay(), CostEstimator::Estimator::functionUnitPortWriteDelay(), ProGeTestBenchGenerator::generate(), DefaultICDecoderGenerator::generate(), ProgramImageGenerator::generateDataImage(), GenerateProcessor::generateProcessor(), ProGe::ProGeUI::generateProcessor(), GPRGuardEncoding::GPRGuardEncoding(), GuardEncoding::GuardEncoding(), ExecutionTracker::handleEvent(), HDB::HDBManager::hasColumn(), HDB::HDBManager::HDBManager(), TTAMachine::HWOperation::HWOperation(), CostEstimator::Estimator::icArea(), CostEstimator::Estimator::icEnergy(), ImmediateEncoding::ImmediateEncoding(), DSDBManager::implementationString(), ExecutionTrace::initialize(), SimulatorFrontend::initializeDataMemories(), XMLSerializer::initializeParser(), HDBTester::initializeTester(), HDB::HDBManager::insertFileFormats(), ExecutionTrace::instructionExecutions(), SimpleScriptInterpreter::interpret(), StopPoint::isConditionOK(), DSDBManager::isUnschedulable(), GenerateProcessor::listICDecPluginParameters(), llvm::LLVMTCERISCVIntrinsicsLowering::LLVMTCERISCVIntrinsicsLowering(), llvm::LLVMTCEScheduler::LLVMTCEScheduler(), loadExplorerPlugin(), HDB::HDBRegistry::loadFromSearchPaths(), AddIUFromHDBDialog::loadHDB(), GenerateProcessorDialog::loadICDecoderGeneratorPlugin(), ProcessorImplementationWindow::loadICDecoderPlugin(), loadInputs(), OperationPropertyLoader::loadModule(), OperationPropertyLoader::loadOperationProperties(), Proxim::loadOptions(), loadPluginParameters(), SimulatorFrontend::loadProgram(), OSEdOptions::loadState(), OperationTriggeredField::loadState(), OperationTriggeredEncoding::loadState(), TTAMachine::OperationTriggeredOperand::loadState(), IDF::UnitImplementationLocation::loadState(), TTAMachine::Bridge::loadState(), TTAMachine::OperationTriggeredFormat::loadState(), InstructionField::loadState(), SourceField::loadState(), TTAMachine::Guard::loadState(), TTAMachine::Port::loadState(), InstructionFormat::loadState(), TTAMachine::AddressSpace::loadState(), TTAMachine::HWOperation::loadState(), ImmediateControlField::loadState(), LImmDstRegisterField::loadState(), SlotField::loadState(), TTAMachine::InstructionTemplate::loadState(), MoveSlot::loadState(), TTAMachine::ExecutionPipeline::loadState(), GuardField::loadState(), TTAMachine::Socket::loadState(), TTAMachine::FunctionUnit::loadState(), TTAMachine::Bus::loadState(), TTAMachine::PortGuard::loadState(), OperationPimpl::loadState(), IDF::MachineImplementation::loadState(), Operand::loadState(), TTAMachine::Machine::loadState(), TTAMachine::RegisterGuard::loadState(), TTAMachine::BaseFUPort::loadStateWithoutReferences(), TTAMachine::ImmediateUnit::loadStateWithoutReferences(), TTAMachine::FUPort::loadStateWithoutReferences(), TTAMachine::Unit::loadStateWithoutReferences(), TTAMachine::ControlUnit::loadStateWithoutReferences(), TTAMachine::Segment::loadStateWithoutReferences(), TTAMachine::Port::loadStateWithoutReferences(), TTAMachine::RegisterFile::loadStateWithoutReferences(), TTAMachine::FunctionUnit::loadStateWithoutReferences(), TTAMachine::Bus::loadStateWithoutReferences(), DSDBManager::longestPathDelayEstimate(), main(), HDB::HDBManager::modifyCostEstimationData(), HDB::HDBManager::modifyCostFunctionPlugin(), numbersToAscending(), AddFUFromHDBDialog::onAdd(), FUDialog::onAddOperationFromOpset(), GenerateProcessorDialog::onBrowseBEMLoad(), AutoSelectImplementationsDialog::onFind(), BlockImplementationDialog::onHDBSelection(), ProDe::OnInit(), ProcessorImplementationWindow::onLoadIDF(), RFDialog::onOK(), GenerateProcessorDialog::onOK(), GCUDialog::onOK(), CallExplorerPluginWindow::onRun(), MDFDocument::OnSaveDocument(), BusDialog::onUnconditionalGuard(), ValidateMachineDialog::onValidate(), ExecutionTrace::open(), MDFDocument::openADF(), MDFDocument::openCFG(), ImplementationTester::openHdb(), OperationIndex::operationCount(), HDB::HDBManager::OperationImplementationByID(), HDB::HDBManager::OperationImplementationIDs(), HDB::HDBManager::OperationImplementationResourceByID(), HDB::HDBManager::OperationImplementationResourceIDs(), OperationIndex::operationName(), TTAMachine::OperationTriggeredOperand::OperationTriggeredOperand(), ProGe::ICDecoderGeneratorPlugin::parameterDescription(), DSDBManager::paretoSetConnectivityAndCycles(), InlineAsmParser::parse(), SimProgramBuilder::processBidirTerminal(), SimProgramBuilder::processInstruction(), PlatformIntegrator::progeOutputHdlFiles(), readAdf(), TPEF::BinaryReader::readBinary(), XMLSerializer::readFile(), readIdf(), OSEdOptionsSerializer::readState(), OperationSerializer::readState(), ExecutionTrace::registerFileAccessCounts(), CostEstimator::Estimator::registerFileArea(), CostEstimator::Estimator::registerFileEnergy(), CostEstimator::Estimator::registerFileMaximumComputationDelay(), CostEstimator::Estimator::registerFilePortReadDelay(), CostEstimator::Estimator::registerFilePortWriteDelay(), DSDBManager::removeApplication(), HDB::HDBManager::removeBusEntry(), DSDBManager::removeConfiguration(), HDB::HDBManager::removeCostEstimationData(), HDB::HDBManager::removeCostFunctionPlugin(), HDB::HDBManager::removeFUArchitecture(), HDB::HDBManager::removeFUEntry(), HDB::HDBManager::removeFUImplementation(), HDB::HDBManager::removeRFArchitecture(), HDB::HDBManager::removeRFEntry(), HDB::HDBManager::removeRFImplementation(), HDB::HDBManager::removeSocketEntry(), DataSectionCreator::resolveDataAreaSizesAndLabelAddresses(), LabelManager::resolveExpressionValue(), HDB::HDBManager::rfArchitectureByID(), HDB::HDBManager::rfArchitectureID(), HDB::HDBManager::rfArchitectureIDs(), HDB::HDBManager::rfByEntryID(), HDB::HDBManager::rfCostEstimationData(), HDB::HDBManager::rfCostEstimationDataIDs(), CostEstimator::Estimator::rfCostFunctionPluginOfImplementation(), HDB::HDBManager::rfEntriesByArchitecture(), HDB::HDBManager::rfEntryHasArchitecture(), HDB::HDBManager::rfEntryIDOfImplementation(), HDB::HDBManager::rfEntryIDs(), MachineResourceManager::rFPortOrFUIndexReference(), SQLiteConnection::rowCountInTable(), DesignSpaceExplorer::schedule(), DesignSpaceExplorer::selectComponents(), ComponentImplementationSelector::selectComponentsToConf(), ComponentImplementationSelector::selectFUs(), ComponentImplementationSelector::selectIUs(), ComponentImplementationSelector::selectRFs(), HDB::HDBManager::setArchitectureForFU(), HDB::HDBManager::setArchitectureForRF(), HDB::HDBManager::setCostFunctionPluginForFU(), HDB::HDBManager::setCostFunctionPluginForRF(), HDBEditorMainFrame::setHDB(), SimpleSimulatorFrontend::setOperationSimulator(), ExecutionTrace::setSimulatedCycleCount(), SimpleSimulatorFrontend::SimpleSimulatorFrontend(), OTASimulationController::simulateCycle(), SimulationController::simulateCycle(), ExecutionTrace::simulatedCycleCount(), OperationSimulator::simulateTrigger(), HDB::HDBManager::socketCostEstimationData(), HDB::HDBManager::socketCostEstimationDataIDs(), HDB::HDBManager::socketCostEstimationDataList(), SocketEncoding::SocketEncoding(), HDB::HDBManager::socketEntryIDs(), CodeCompressorPlugin::startNewProgram(), SQLiteConnection::tableExistsInDB(), tandemSimulate(), TTAProgram::TerminalFUPort::TerminalFUPort(), TTAProgram::ProgramWriter::terminalResource(), TestApplication::TestApplication(), ProGe::TestBenchBlock::TestBenchBlock(), ProximToolbox::testCondition(), ProximToolbox::testExpression(), HDBTester::testFU(), HDBTester::testRF(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), HDB::HDBManager::unsetArchitectureForFU(), HDB::HDBManager::unsetArchitectureForRF(), HDB::HDBManager::unsetCostFunctionPluginForFU(), HDB::HDBManager::unsetCostFunctionPluginForRF(), ProcessorImplementationWindow::updateFUList(), ProcessorImplementationWindow::updateImplementationLists(), OperationPropertyDialog::updateOperation(), ProcessorImplementationWindow::updateRFList(), OperationBuilder::verifyXML(), SQLiteConnection::version(), DSDBManager::writeArchitectureToFile(), TPEF::BinaryWriter::writeBinary(), writeCustomOpMacros(), DSDBManager::writeImplementationToFile(), OSEdOptionsSerializer::writeState(), OperationSerializer::writeState(), ExecutionTrace::~ExecutionTrace(), and SQLiteQueryResult::~SQLiteQueryResult().

◆ errorMessageStack()

string Exception::errorMessageStack ( bool  messagesOnly = false) const

Returns error message of exception and all error messages of exceptions that caused current exception.

Parameters
messagesOnlyif true, only returns error messages, not the exception names and line numbers
Returns
error message of exception and all error messages of exceptions that caused current exception.

Definition at line 138 of file Exception.cc.

138  {
139 
140  string result = messagesOnly ?
141  errorMessage() :
142  (boost::format("%s:%d '%s'\n") %
143  fileName() % lineNum() % errorMessage()).str();
144 
145  const Exception* exception = this;
146 
147  while (exception->hasCause()) {
148  exception = &exception->cause();
149  assert(exception != NULL);
150  result += messagesOnly ?
151  exception->errorMessage() :
152  (boost::format("%s:%d '%s'\n") %
153  exception->fileName() % exception->lineNum() %
154  exception->errorMessage()).str();
155  }
156 
157  return result;
158 }

References assert, cause(), errorMessage(), fileName(), hasCause(), and lineNum().

Referenced by InputFUBroker::allAvailableResources(), BusBroker::allAvailableResources(), DataDependenceGraphBuilder::build(), CycleLookBackSoftwareBypasser::bypass(), LLVMBackend::compile(), ControlDependenceGraph::createControlDependenceEdge(), MoveNode::earliestResultReadCycle(), DesignSpaceExplorer::evaluate(), MachCommand::execute(), ConfCommand::execute(), BBSchedulerController::executeDDGPass(), Evaluate::explore(), MinimalOpSet::explore(), VectorLSGenerator::explore(), GrowMachine::explore(), SimpleICOptimizer::explore(), ADFCombiner::explore(), ControlDependenceGraphPass::handleControlDependenceGraph(), BusBroker::isAvailable(), llvm::LLVMTCEScheduler::LLVMTCEScheduler(), Operand::loadState(), main(), ProgramDependenceGraph::ProgramDependenceGraph(), ProgramDependenceGraph::removeGuardedJump(), BasicBlockScheduler::scheduleMove(), BasicBlockScheduler::scheduleOperation(), ExecutionPipelineBroker::setupResourceLinks(), OutputFUBroker::setupResourceLinks(), InputPSocketBroker::setupResourceLinks(), OutputPSocketBroker::setupResourceLinks(), ITemplateBroker::setupResourceLinks(), and IUBroker::setupResourceLinks().

Here is the call graph for this function:

◆ fileName()

std::string Exception::fileName ( ) const

◆ hasCause()

bool Exception::hasCause ( ) const

Returns true if cause is set for current exception.

Returns
True if cause is set for current exception.

Definition at line 85 of file Exception.cc.

85  {
86  return (cause_ != NULL);
87 }

References cause_.

Referenced by errorMessageStack().

◆ lastExceptionInfo()

std::string Exception::lastExceptionInfo ( )
static

Returns information of the last thrown exception.

Returns information of the last exception thrown.

This is useful in debugging. It's used in Application.hh's unexpected exception handler.

Returns
A string describing the last thrown exception.

Definition at line 108 of file Exception.cc.

108  {
109  return lastExceptionInfo_;
110 }

References lastExceptionInfo_.

Referenced by Application::unexpectedExceptionHandler().

◆ lineNum()

int Exception::lineNum ( ) const

◆ procedureName()

std::string Exception::procedureName ( ) const

◆ setCause()

void Exception::setCause ( const Exception aCause)

Sets cause of exception.

Parameters
aCauseException that resulted current exception.

Definition at line 75 of file Exception.cc.

75  {
76  cause_ = new Exception(aCause);
77 }

References cause_, and Exception().

Referenced by CodeSectionCreator::addMove(), TTAProgram::TPEFProgramFactory::addProcedures(), BUMoveNodeSelector::BUMoveNodeSelector(), TTAProgram::TPEFProgramFactory::createLabels(), LLVMBackend::createPlugin(), TTAProgram::TPEFProgramFactory::createTerminal(), CriticalPathBBMoveNodeSelector::CriticalPathBBMoveNodeSelector(), TPEF::BinaryStream::endOfFile(), DataSectionCreator::finalize(), CodeSectionCreator::finalize(), OperationBehaviorLoader::importBehavior(), XMLSerializer::initializeParser(), SimulatorFrontend::loadMachine(), SimulatorFrontend::loadProgram(), OperationPimpl::loadState(), Operand::loadState(), main(), TPEF::BinaryReader::readBinary(), TPEF::BinaryStream::readByte(), TPEF::BinaryStream::readByteBlock(), TPEF::BinaryStream::readHalfWord(), TPEF::BinaryStream::readHalfWordBlock(), TPEF::BinaryStream::readPosition(), OperationSerializer::readState(), TPEF::BinaryStream::readWord(), TPEF::BinaryStream::readWordBlock(), DataSectionCreator::resolveDataAreaSizesAndLabelAddresses(), LabelManager::resolveExpressionValue(), TTAMachine::ResourceVectorSet::ResourceVectorSet(), MachineResourceManager::rFPortOrFUIndexReference(), DesignSpaceExplorer::schedule(), ComponentImplementationSelector::selectComponentsToConf(), ComponentImplementationSelector::selectFUs(), ComponentImplementationSelector::selectIUs(), ComponentImplementationSelector::selectRFs(), TPEF::BinaryStream::setReadPosition(), TPEF::BinaryStream::setWritePosition(), TPEF::BinaryStream::sizeOfFile(), TTAProgram::TerminalFUPort::TerminalFUPort(), TTAProgram::ProgramWriter::terminalResource(), OperationSerializer::toOperation(), OperationSerializer::toXMLFormat(), TPEF::BinaryStream::writeByte(), TPEF::BinaryStream::writeByteBlock(), TPEF::BinaryStream::writeHalfWord(), TPEF::BinaryStream::writeHalfWordBlock(), TPEF::BinaryStream::writePosition(), OperationSerializer::writeState(), TPEF::BinaryStream::writeWord(), and TPEF::BinaryStream::writeWordBlock().

Here is the call graph for this function:

Member Data Documentation

◆ cause_

const Exception* Exception::cause_
private

Exception that caused current exception.

Definition at line 91 of file Exception.hh.

Referenced by cause(), hasCause(), and setCause().

◆ errorMessage_

std::string Exception::errorMessage_
private

Error message.

Definition at line 89 of file Exception.hh.

Referenced by errorMessage().

◆ file_

std::string Exception::file_
private

Name of the file where exception occurred.

Definition at line 83 of file Exception.hh.

◆ lastExceptionInfo_

std::string Exception::lastExceptionInfo_ = ""
staticprivate

Information of the last thrown exception for easing the debugging.

Definition at line 81 of file Exception.hh.

Referenced by Exception(), and lastExceptionInfo().

◆ line_

int Exception::line_
private

Line number in the file.

Definition at line 85 of file Exception.hh.

◆ proc_

std::string Exception::proc_
private

Procedure name.

Definition at line 87 of file Exception.hh.

◆ unknownProcMsg_

const string Exception::unknownProcMsg_ = "(unknown)"
static

Used when no procedure name is given.

Definition at line 70 of file Exception.hh.


The documentation for this class was generated from the following files:
Exception::cause
const Exception & cause() const
Definition: Exception.cc:95
Exception::lineNum
int lineNum() const
Exception::line_
int line_
Line number in the file.
Definition: Exception.hh:85
boost
Definition: BoostGraph.hh:46
Conversion::toString
static std::string toString(const T &source)
Exception::fileName
std::string fileName() const
assert
#define assert(condition)
Definition: Application.hh:86
Exception::lastExceptionInfo_
static std::string lastExceptionInfo_
Information of the last thrown exception for easing the debugging.
Definition: Exception.hh:81
Exception::errorMessage_
std::string errorMessage_
Error message.
Definition: Exception.hh:89
Exception::cause_
const Exception * cause_
Exception that caused current exception.
Definition: Exception.hh:91
Exception::file_
std::string file_
Name of the file where exception occurred.
Definition: Exception.hh:83
Exception
Definition: Exception.hh:54
Exception::errorMessage
std::string errorMessage() const
Definition: Exception.cc:123
Exception::proc_
std::string proc_
Procedure name.
Definition: Exception.hh:87
Exception::Exception
Exception(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
Definition: Exception.cc:57
Exception::hasCause
bool hasCause() const
Definition: Exception.cc:85