Fixed problem in DeviceSettings::strParam, returned wrong string
[avr-sim.git] / src / RuntimeException.h
blobc6b8b3e8c5829ef67caa6b623f794b6ddc595e53
1 #ifndef UTIL_RUNTIMEEXCEPTION_H
2 #define UTIL_RUNTIMEEXCEPTION_H
4 #include "Exception.h"
6 namespace util {
7 /**
8 * @author Tom Haber
9 * @date Apr 21, 2008
10 * @brief Generic Exception for most runtime issues
12 * RuntimeException is thrown when some runtime operation
13 * causes the simulator to enter a bad state.
15 class RuntimeException : public Exception {
16 public:
17 RuntimeException() : Exception("Runtime Exception") {}
18 RuntimeException(const char *s) : Exception(s) {}
19 RuntimeException(const std::string & s) : Exception(s) {}
22 #endif