mirror of https://github.com/m-labs/artiq.git
language/core: add RuntimeException
This commit is contained in:
parent
4a1cad5227
commit
035b541a73
|
@ -1,7 +1,8 @@
|
||||||
class RuntimeException(Exception):
|
from artiq.language.core import RuntimeException
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
|
# Must be kept in sync with soc/runtime/exceptions.h
|
||||||
|
|
||||||
class OutOfMemory(RuntimeException):
|
class OutOfMemory(RuntimeException):
|
||||||
eid = 0
|
eid = 0
|
||||||
|
|
||||||
|
|
|
@ -346,4 +346,12 @@ def EncodedException(eid):
|
||||||
return EncodedException
|
return EncodedException
|
||||||
|
|
||||||
|
|
||||||
|
class RuntimeException(Exception):
|
||||||
|
"""Base class for all exceptions used by the device runtime.
|
||||||
|
Those exceptions are defined in ``artiq.devices.runtime_exceptions``.
|
||||||
|
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
first_user_eid = 1024
|
first_user_eid = 1024
|
||||||
|
|
Loading…
Reference in New Issue