Skip to main content

ScalarFunctionError

Type Alias ScalarFunctionError 

Source
pub type ScalarFunctionError = FunctionError;

Aliased Type§

pub enum ScalarFunctionError {
    ArityMismatch {
        function: Fragment,
        expected: usize,
        actual: usize,
    },
    InvalidArgumentType {
        function: Fragment,
        argument_index: usize,
        expected: Vec<Type>,
        actual: Type,
    },
    ExecutionFailed {
        function: Fragment,
        reason: String,
    },
    NotFound {
        function: Fragment,
    },
    Wrapped(Box<Error>),
}

Variants§

§

ArityMismatch

Fields

§function: Fragment
§expected: usize
§actual: usize
§

InvalidArgumentType

Fields

§function: Fragment
§argument_index: usize
§expected: Vec<Type>
§actual: Type
§

ExecutionFailed

Fields

§function: Fragment
§reason: String
§

NotFound

Fields

§function: Fragment
§

Wrapped(Box<Error>)