1 #ifndef AVR_ACCESSVIOLATION_H
2 #define AVR_ACCESSVIOLATION_H
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
{
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*/