Fixed problem in DeviceSettings::strParam, returned wrong string
[avr-sim.git] / src / AccessViolation.h
blob09ec19288c1cf8c3fd80d678e3f184f9f956c92f
1 #ifndef AVR_ACCESSVIOLATION_H
2 #define AVR_ACCESSVIOLATION_H
4 #include "Exception.h"
6 namespace avr {
8 /**
9 * @author Tom Haber
10 * @date Apr 30, 2008
11 * @brief Thrown when a bad memory location is accessed
13 * AccessViolation is thrown when a memory access is out-of-bounds.
15 class AccessViolation : public util::Exception {
16 public:
17 AccessViolation() : Exception("Access Violation") {}
18 AccessViolation(const char *msg) : Exception(msg) {}
19 AccessViolation(const std::string msg) : Exception(msg) {}
24 #endif /*AVR_ACCESSVIOLATION_H*/