Assembler::Exception Class Reference

#include <Assembler.h>

Collaboration diagram for Assembler::Exception:

Collaboration graph
[legend]
List of all members.

Detailed Description

Exception thrown by the assemblers.


Public Member Functions

 Exception (const std::string &reason, SgAsmInstruction *insn)
 An exception bound to a particular instruction being assembled.
 Exception (const std::string &reason)
 An exception not bound to a particular instruction.
void print (std::ostream &) const

Public Attributes

std::string mesg
 Reason that disassembly failed.
SgAsmInstructioninsn
 Instruction associated with an assembly error.

Friends

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


Constructor & Destructor Documentation

Assembler::Exception::Exception ( const std::string &  reason,
SgAsmInstruction insn 
) [inline]

An exception bound to a particular instruction being assembled.

Assembler::Exception::Exception ( const std::string &  reason  )  [inline]

An exception not bound to a particular instruction.


Member Function Documentation

void Assembler::Exception::print ( std::ostream &   )  const


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Exception  
) [friend]


Member Data Documentation

std::string Assembler::Exception::mesg

Reason that disassembly failed.

SgAsmInstruction* Assembler::Exception::insn

Instruction associated with an assembly error.


The documentation for this class was generated from the following file:
Generated on Tue Jan 31 05:33:21 2012 for ROSE by  doxygen 1.4.7