[][src]Enum tremor_script::registry::FunctionError

pub enum FunctionError {
    BadArity {
        mfa: MFA,
        calling_a: usize,
    },
    RuntimeError {
        mfa: MFA,
        error: String,
    },
    MissingModule {
        m: String,
    },
    MissingFunction {
        m: String,
        f: String,
    },
    BadType {
        mfa: MFA,
    },
    Error(Box<Error>),
}

Function error

Variants

BadArity

The function was called with a bad arity

Fields of BadArity

mfa: MFA

The function was called with a bad arity

calling_a: usize

The function was called with a bad arity

RuntimeError

The function encountered a runtime error

Fields of RuntimeError

mfa: MFA

The function was called with a bad arity

error: String

The function was called with a bad arity

MissingModule

The module doesn't exit

Fields of MissingModule

m: String

The function was called with a bad arity

MissingFunction

The function doesn't exist

Fields of MissingFunction

m: String

The function was called with a bad arity

f: String

The function was called with a bad arity

BadType

A bad type was passed

Fields of BadType

mfa: MFA

The function was called with a bad arity

Error(Box<Error>)

A generic error

Methods

impl FunctionError[src]

pub fn into_err<O: BaseExpr, I: BaseExpr>(
    self,
    outer: &O,
    inner: &I,
    registry: Option<&Registry>,
    meta: &NodeMetas
) -> Error
[src]

Turns a function error into a tremor script error

Trait Implementations

impl Debug for FunctionError[src]

impl From<Error> for FunctionError[src]

impl PartialEq<FunctionError> for FunctionError[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,