[][src]Enum sm_ext::SPError

#[repr(C)]
pub enum SPError {
    None,
    FileFormat,
    Decompressor,
    HeapLow,
    Param,
    InvalidAddress,
    NotFound,
    Index,
    StackLow,
    NotDebugging,
    InvalidInstruction,
    MemAccess,
    StackMin,
    HeapMin,
    DivideByZero,
    ArrayBounds,
    InstructionParam,
    StackLeak,
    HeapLeak,
    ArrayTooBig,
    TrackerBounds,
    InvalidNative,
    ParamsMax,
    Native,
    NotRunnable,
    Aborted,
    CodeTooOld,
    CodeTooNew,
    OutOfMemory,
    IntegerOverflow,
    Timeout,
    User,
    Fatal,
}

Error codes for SourcePawn routines.

Variants

None

No error occurred

FileFormat

File format unrecognized

Decompressor

A decompressor was not found

HeapLow

Not enough space left on the heap

Param

Invalid parameter or parameter type

InvalidAddress

A memory address was not valid

NotFound

The object in question was not found

Index

Invalid index parameter

StackLow

Not enough space left on the stack

NotDebugging

Debug mode was not on or debug section not found

InvalidInstruction

Invalid instruction was encountered

MemAccess

Invalid memory access

StackMin

Stack went beyond its minimum value

HeapMin

Heap went beyond its minimum value

DivideByZero

Division by zero

ArrayBounds

Array index is out of bounds

InstructionParam

Instruction had an invalid parameter

StackLeak

A native leaked an item on the stack

HeapLeak

A native leaked an item on the heap

ArrayTooBig

A dynamic array is too big

TrackerBounds

Tracker stack is out of bounds

InvalidNative

Native was pending or invalid

ParamsMax

Maximum number of parameters reached

Native

Error originates from a native

NotRunnable

Function or plugin is not runnable

Aborted

Function call was aborted

CodeTooOld

Code is too old for this VM

CodeTooNew

Code is too new for this VM

OutOfMemory

Out of memory

IntegerOverflow

Integer overflow (-INT_MIN / -1)

Timeout

Timeout

User

Custom message

Fatal

Custom fatal message

Trait Implementations

impl Debug for SPError[src]

impl Display for SPError[src]

impl Error for SPError[src]

Auto Trait Implementations

impl RefUnwindSafe for SPError

impl Send for SPError

impl Sync for SPError

impl Unpin for SPError

impl UnwindSafe for SPError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<'_, T, U> TryFromPlugin<'_, T> for U where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<'ctx, T, U> TryIntoPlugin<'ctx, U> for T where
    U: TryFromPlugin<'ctx, T>, 
[src]

type Error = <U as TryFromPlugin<'ctx, T>>::Error