Skip to main content

uika_ffi/
error.rs

1/// FFI error codes shared between Rust and C++.
2#[repr(u32)]
3#[derive(Clone, Copy, Debug, PartialEq, Eq)]
4pub enum UikaErrorCode {
5    Ok = 0,
6    ObjectDestroyed = 1,
7    InvalidCast = 2,
8    PropertyNotFound = 3,
9    FunctionNotFound = 4,
10    TypeMismatch = 5,
11    NullArgument = 6,
12    IndexOutOfRange = 7,
13    InvalidOperation = 8,
14    InternalError = 9,
15    BufferTooSmall = 10,
16}