ROSE 0.11.145.147
Rose/BinaryAnalysis/InstructionSemantics/BaseSemantics/Exception.h
1#ifndef ROSE_BinaryAnalysis_InstructionSemantics_BaseSemantics_Exception_H
2#define ROSE_BinaryAnalysis_InstructionSemantics_BaseSemantics_Exception_H
3#include <featureTests.h>
4#ifdef ROSE_ENABLE_BINARY_ANALYSIS
5
6#include <Rose/BinaryAnalysis/InstructionSemantics/BaseSemantics/BasicTypes.h>
7#include <Rose/Exception.h>
8
10
11namespace Rose {
12namespace BinaryAnalysis {
13namespace InstructionSemantics {
14namespace BaseSemantics {
15
17// Exceptions
19
22public:
23 SgAsmInstruction *insn;
24 Exception(const std::string &mesg, SgAsmInstruction *insn): Rose::Exception(mesg), insn(insn) {}
25 void print(std::ostream&) const;
26};
27
29public:
30 NotImplemented(const std::string &mesg, SgAsmInstruction *insn)
31 : Exception(mesg, insn) {}
32};
33
34std::ostream& operator<<(std::ostream&, const Exception&);
35
36} // namespace
37} // namespace
38} // namespace
39} // namespace
40
41#endif
42#endif
Base class for all ROSE exceptions.
Base class for machine instructions.
The ROSE library.