forked from M-Labs/artiq
firmware: add UnwrapNoneError exception
This commit is contained in:
parent
792f3d1ca8
commit
7a2b11cc54
@ -329,7 +329,7 @@ extern fn stop_fn(_version: c_int,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Must be kept in sync with `artiq.compiler.embedding`
|
// Must be kept in sync with `artiq.compiler.embedding`
|
||||||
static EXCEPTION_ID_LOOKUP: [(&str, u32); 21] = [
|
static EXCEPTION_ID_LOOKUP: [(&str, u32); 22] = [
|
||||||
("RTIOUnderflow", 0),
|
("RTIOUnderflow", 0),
|
||||||
("RTIOOverflow", 1),
|
("RTIOOverflow", 1),
|
||||||
("RTIODestinationUnreachable", 2),
|
("RTIODestinationUnreachable", 2),
|
||||||
@ -351,6 +351,7 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 21] = [
|
|||||||
("ValueError", 18),
|
("ValueError", 18),
|
||||||
("ZeroDivisionError", 19),
|
("ZeroDivisionError", 19),
|
||||||
("LinAlgError", 20),
|
("LinAlgError", 20),
|
||||||
|
("UnwrapNoneError", 21),
|
||||||
];
|
];
|
||||||
|
|
||||||
pub fn get_exception_id(name: &str) -> u32 {
|
pub fn get_exception_id(name: &str) -> u32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user