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

Description

Exception thrown for parse errors.

Definition at line 51 of file BinaryVxcoreParser.h.

#include <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. More...
 
std::string toString () const
 Render this exception as a string. More...
 
void print (std::ostream &out) const
 Emit this exception to a stream. More...
 
- Public Member Functions inherited from Rose::Exception
 Exception (const std::string &s)
 Construct an exception with an error message. More...
 

Friends

std::ostream & operator<< (std::ostream &out, const Exception &e)
 

Constructor & Destructor Documentation

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 57 of file BinaryVxcoreParser.h.

Member Function Documentation

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

Render this exception as a string.

Definition at line 63 of file BinaryVxcoreParser.h.

References Rose::StringUtility::cEscape().

Referenced by 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 70 of file BinaryVxcoreParser.h.

References toString().


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