- Main Page
- Modules
- Classes
- Files
- Related Pages

- File List
- File Members

# src/SimulatorException.h

Go to the documentation of this file.

    00001 #ifndef SIMULATOREXCEPTION_H_
    00002 #define SIMULATOREXCEPTION_H_
    00003
    00004 #include <string>
    00005 #include "config.h"
    00006
    00008 class SimulatorException
    00009 {
    00010 public:
    00011     SimulatorException(): _msg() {};
    00012     SimulatorException(const std::string& msg): _msg(msg) {};
    00013     SimulatorException(const char* msg): _msg(msg) {};
    00014     virtual ~SimulatorException() {};
    00015
    00016     const char* what() { return _msg.c_str(); };
    00017     std::string getMessage() { return _msg; };
    00018
    00019 private:
    00020     std::string _msg;
    00021 };
    00022
    00023 #endif /*SIMULATOREXCEPTION_H_*/