From 4198601abb4df9ccfeb1c77617ff58a6d8a0fd12 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 10 Jan 2016 14:43:30 +0000 Subject: [PATCH] coredevice.exceptions: add CacheError. --- artiq/coredevice/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/coredevice/exceptions.py b/artiq/coredevice/exceptions.py index c595d2fcc..46402a31f 100644 --- a/artiq/coredevice/exceptions.py +++ b/artiq/coredevice/exceptions.py @@ -11,6 +11,10 @@ class InternalError(Exception): """Raised when the runtime encounters an internal error condition.""" +class CacheError(Exception): + """Raised when putting a value into a cache row would violate memory safety.""" + + class RTIOUnderflow(Exception): """Raised when the CPU fails to submit a RTIO event early enough (with respect to the event's timestamp).