ROSE 0.11.145.192
Public Member Functions | List of all members
Rose::BinaryAnalysis::VxcoreParser::Exception Class Reference

Description

Exception thrown for parse errors.

Definition at line 60 of file BinaryVxcoreParser.h.

#include <frontend/BinaryFormats/BinaryVxcoreParser.h>

Inheritance diagram for Rose::BinaryAnalysis::VxcoreParser::Exception:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::VxcoreParser::Exception:
Collaboration graph
[legend]

Public Member Functions

 Exception (const boost::filesystem::path &fileName, size_t offset, const std::string &what)
 Create a new exception with a location and error message.
 
std::string toString () const
 Render this exception as a string.
 
void print (std::ostream &out) const
 Emit this exception to a stream.
 
- Public Member Functions inherited from Rose::Exception
 Exception (const std::string &s)
 Construct an exception with an error message.
 

Constructor & Destructor Documentation

◆ Exception()

Rose::BinaryAnalysis::VxcoreParser::Exception::Exception ( const boost::filesystem::path &  fileName,
size_t  offset,
const std::string &  what 
)
inline

Create a new exception with a location and error message.

Definition at line 66 of file BinaryVxcoreParser.h.

◆ ~Exception()

Rose::BinaryAnalysis::VxcoreParser::Exception::~Exception ( )
throw (
)
inline

Definition at line 69 of file BinaryVxcoreParser.h.

Member Function Documentation

◆ toString()

std::string Rose::BinaryAnalysis::VxcoreParser::Exception::toString ( ) const
inline

Render this exception as a string.

Definition at line 72 of file BinaryVxcoreParser.h.

References Rose::StringUtility::cEscape().

Referenced by print().

◆ print()

void Rose::BinaryAnalysis::VxcoreParser::Exception::print ( std::ostream &  out) const
inline

Emit this exception to a stream.

No trailing linefeed is emitted.

Definition at line 79 of file BinaryVxcoreParser.h.

References toString().


The documentation for this class was generated from the following file: