ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MemoryMap::Exception Class Reference

Exception for MemoryMap operations. More...

#include <MemoryMap.h>

Inheritance diagram for MemoryMap::Exception:
Collaboration diagram for MemoryMap::Exception:

Public Member Functions

 Exception (const std::string &mesg, const MemoryMap *map)
 
virtual ~Exception () throw ()
 
virtual std::string leader (std::string dflt="memory map problem") const
 Leading part of the error message. More...
 
virtual std::string details (bool) const
 Details emitted on following lines, indented two spaces. More...
 
virtual void print (std::ostream &, bool verbose=true) const
 

Public Attributes

const MemoryMapmap
 Map that caused the exception if available, null otherwise. More...
 

Friends

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

Detailed Description

Exception for MemoryMap operations.

Definition at line 423 of file MemoryMap.h.

Constructor & Destructor Documentation

MemoryMap::Exception::Exception ( const std::string &  mesg,
const MemoryMap map 
)
inline

Definition at line 425 of file MemoryMap.h.

virtual MemoryMap::Exception::~Exception ( )
throw (
)
inlinevirtual

Definition at line 426 of file MemoryMap.h.

Member Function Documentation

std::string MemoryMap::Exception::leader ( std::string  dflt = "memory map problem") const
virtual

Leading part of the error message.

Definition at line 43 of file MemoryMap.C.

std::string MemoryMap::Exception::details ( bool  verbose) const
virtual

Details emitted on following lines, indented two spaces.

Definition at line 50 of file MemoryMap.C.

void MemoryMap::Exception::print ( std::ostream &  o,
bool  verbose = true 
) const
virtual

Reimplemented in MemoryMap::SyntaxError, MemoryMap::NoFreeSpace, MemoryMap::NotMapped, and MemoryMap::Inconsistent.

Definition at line 62 of file MemoryMap.C.

Referenced by operator<<().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Exception x 
)
friend

Definition at line 31 of file MemoryMap.C.

Member Data Documentation

const MemoryMap* MemoryMap::Exception::map

Map that caused the exception if available, null otherwise.

Definition at line 432 of file MemoryMap.h.

Referenced by SgAsmPEExportDirectory::ctor(), SgAsmPEExportSection::parse(), SgAsmPEImportDirectory::parse(), and SgAsmPEImportDirectory::parse_ilt_iat().


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