forked from M-Labs/artiq
compiler: add UnwrapNoneError exception
This commit is contained in:
parent
7a2b11cc54
commit
352cf907ee
@ -114,6 +114,7 @@ class EmbeddingMap:
|
|||||||
"0:ValueError",
|
"0:ValueError",
|
||||||
"0:ZeroDivisionError",
|
"0:ZeroDivisionError",
|
||||||
"0:LinAlgError",
|
"0:LinAlgError",
|
||||||
|
"UnwrapNoneError",
|
||||||
])
|
])
|
||||||
|
|
||||||
def preallocate_runtime_exception_names(self, names):
|
def preallocate_runtime_exception_names(self, names):
|
||||||
|
@ -182,3 +182,8 @@ class I2CError(Exception):
|
|||||||
class SPIError(Exception):
|
class SPIError(Exception):
|
||||||
"""Raised when a SPI transaction fails."""
|
"""Raised when a SPI transaction fails."""
|
||||||
artiq_builtin = True
|
artiq_builtin = True
|
||||||
|
|
||||||
|
|
||||||
|
class UnwrapNoneError(Exception):
|
||||||
|
"""Raised when unwrapping a none Option."""
|
||||||
|
artiq_builtin = True
|
||||||
|
Loading…
Reference in New Issue
Block a user