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

#include <Exception.hh>

Inheritance diagram for PathNotFound:
Inheritance graph
Collaboration diagram for PathNotFound:
Collaboration graph

Public Member Functions

 PathNotFound (std::string filename, int linenum, std::string procname, std::string errorMessage, std::string path)
 
virtual ~PathNotFound ()
 
std::string path () const
 
- Public Member Functions inherited from IOException
 IOException (std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
 
virtual ~IOException ()
 
- Public Member Functions inherited from Exception
 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
 

Private Attributes

std::string path_
 

Additional Inherited Members

- Static Public Member Functions inherited from Exception
static std::string lastExceptionInfo ()
 Returns information of the last thrown exception. More...
 
- Static Public Attributes inherited from Exception
static const std::string unknownProcMsg_ = "(unknown)"
 Used when no procedure name is given. More...
 

Detailed Description

Implements an exception which is thrown when a requested path is not found.

Definition at line 242 of file Exception.hh.

Constructor & Destructor Documentation

◆ PathNotFound()

PathNotFound::PathNotFound ( std::string  filename,
int  linenum,
std::string  procname,
std::string  errorMessage,
std::string  path 
)

The constructor.

Parameters
filenameThe name of the file in which exception was thrown.
linenumThe numberof the line in which exception was thrown.
procnameThe name of the procedure in which exception was thrown.
errorMessageThe error message.
pathThe path that could not be found.

Definition at line 341 of file Exception.cc.

346  :
347  IOException(filename, linenum, procname, errorMessage), path_(path) {
348 }

◆ ~PathNotFound()

PathNotFound::~PathNotFound ( )
virtual

The destructor.

Definition at line 353 of file Exception.cc.

353  {
354 }

Member Function Documentation

◆ path()

std::string PathNotFound::path ( ) const

Member Data Documentation

◆ path_

std::string PathNotFound::path_
private

Definition at line 255 of file Exception.hh.


The documentation for this class was generated from the following files:
PathNotFound::path_
std::string path_
Definition: Exception.hh:255
PathNotFound::path
std::string path() const
IOException::IOException
IOException(std::string filename, int linenum, std::string procname=unknownProcMsg_, std::string errorMessage="")
Definition: Exception.cc:192
Exception::errorMessage
std::string errorMessage() const
Definition: Exception.cc:123