1#[derive(Debug, Fail)]
4pub enum Error {
5 #[fail(display = "type mismatch")]
6 TypeMismatch,
7 #[fail(display = "synchronize rules violated")]
8 ViolateSync,
9 #[fail(display = "invalid memory address")]
10 InvalidAddress,
11 #[fail(display = "out of memory")]
12 OutOfMemory,
13 #[fail(display = "not callable")]
14 NotCallable,
15 #[fail(display = "not sharable")]
16 NotSharable,
17 #[fail(display = "expect local object")]
18 ExpectLocal,
19 #[fail(display = "expect shared object")]
20 ExpectShared,
21 #[fail(display = "pop empty stack")]
22 ExhaustedFrame,
23 #[fail(display = "no parent frame")]
24 NoParentFrame,
25}
26
27pub type Result<T> = std::result::Result<T, Error>;