ROSE 0.11.145.192
Public Member Functions | Public Attributes | List of all members
Rose::BinaryAnalysis::MemoryMap::SyntaxError Struct Reference

Description

Exception thrown by load() when there's a syntax error in the index file.

Definition at line 249 of file MemoryMap.h.

#include <Rose/BinaryAnalysis/MemoryMap.h>

Inheritance diagram for Rose::BinaryAnalysis::MemoryMap::SyntaxError:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::MemoryMap::SyntaxError:
Collaboration graph
[legend]

Public Member Functions

 SyntaxError (const std::string &mesg, const MemoryMap::Ptr &map, const std::string &filename, unsigned linenum, int colnum=-1)
 
virtual void print (std::ostream &, bool verbose=true) const
 
- Public Member Functions inherited from Rose::BinaryAnalysis::MemoryMap::Exception
 Exception (const std::string &mesg, const MemoryMap::Ptr map)
 
virtual std::string leader (std::string dflt="memory map problem") const
 Leading part of the error message.
 
virtual std::string details (bool) const
 Details emitted on following lines, indented two spaces.
 
- Public Member Functions inherited from Rose::Exception
 Exception (const std::string &s)
 Construct an exception with an error message.
 

Public Attributes

std::string filename
 Name of index file where error occurred.
 
unsigned linenum
 Line number (1 origin) where error occurred.
 
int colnum
 Optional column number (0-origin; negative if unknown).
 
- Public Attributes inherited from Rose::BinaryAnalysis::MemoryMap::Exception
MemoryMap::Ptr map
 Map that caused the exception if available, null otherwise.
 

Constructor & Destructor Documentation

◆ SyntaxError()

Rose::BinaryAnalysis::MemoryMap::SyntaxError::SyntaxError ( const std::string &  mesg,
const MemoryMap::Ptr map,
const std::string &  filename,
unsigned  linenum,
int  colnum = -1 
)
inline

Definition at line 250 of file MemoryMap.h.

◆ ~SyntaxError()

virtual Rose::BinaryAnalysis::MemoryMap::SyntaxError::~SyntaxError ( )
throw (
)
inlinevirtual

Definition at line 253 of file MemoryMap.h.

Member Function Documentation

◆ print()

virtual void Rose::BinaryAnalysis::MemoryMap::SyntaxError::print ( std::ostream &  ,
bool  verbose = true 
) const
virtual

Member Data Documentation

◆ filename

std::string Rose::BinaryAnalysis::MemoryMap::SyntaxError::filename

Name of index file where error occurred.

Definition at line 256 of file MemoryMap.h.

◆ linenum

unsigned Rose::BinaryAnalysis::MemoryMap::SyntaxError::linenum

Line number (1 origin) where error occurred.

Definition at line 257 of file MemoryMap.h.

◆ colnum

int Rose::BinaryAnalysis::MemoryMap::SyntaxError::colnum

Optional column number (0-origin; negative if unknown).

Definition at line 258 of file MemoryMap.h.


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