Enum samp_sdk::amx::AmxError [] [src]

pub enum AmxError {
    Exit,
    Assert,
    StackError,
    Bounds,
    MemoryAccess,
    InvalidInstruction,
    StackLow,
    HeapLow,
    Callback,
    Native,
    Divide,
    Sleep,
    InvalidState,
    Memory,
    Format,
    Version,
    NotFound,
    Index,
    Debug,
    Init,
    UserData,
    InitJit,
    Params,
    Domain,
    General,
    Unknown,
}

Custom error type for AMX errors. Can be casted from i32

Examples

let find_public: samp_sdk::types::FindPublic_t = ...;
let result = find_public(...);
return AmxError::from(result);

Variants

Trait Implementations

impl Debug for AmxError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<i32> for AmxError
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for AmxError

impl Sync for AmxError