pub enum MarineError {
    InvalidConfig(String),
    InstantiationError {
        module_import_name: String,
        modules_dir: Option<PathBuf>,
        provided_modules: Vec<String, Global>,
    },
    IOError(String),
    MissingFunctionError(String),
    MissingArgumentError(String),
    NoSuchModule(String),
    JsonArgumentsDeserializationError {
        module_name: String,
        function_name: String,
        error: ITJsonSeDeError,
    },
    JsonOutputSerializationError {
        module_name: String,
        function_name: String,
        error: ITJsonSeDeError,
    },
    ParseConfigError(Error),
    MaxHeapSizeOverflow {
        max_heap_size_wanted: u64,
        max_heap_size_allowed: u64,
    },
    EngineError(MError),
}

Variants

InvalidConfig(String)

Errors that happened due to invalid config content

InstantiationError

Fields

module_import_name: String
modules_dir: Option<PathBuf>
provided_modules: Vec<String, Global>

An error occurred at the instantiation step.

IOError(String)

Various errors related to file i/o.

MissingFunctionError(String)

A function with specified name is missing.

MissingArgumentError(String)

An argument with specified name is missing.

NoSuchModule(String)

Returns when there is no module with such name.

JsonArgumentsDeserializationError

Fields

module_name: String
function_name: String
error: ITJsonSeDeError

Provided arguments aren’t compatible with a called function signature.

JsonOutputSerializationError

Fields

module_name: String
function_name: String
error: ITJsonSeDeError

Returned outputs aren’t compatible with a called function signature.

ParseConfigError(Error)

Errors related to invalid config.

MaxHeapSizeOverflow

Fields

max_heap_size_wanted: u64
max_heap_size_allowed: u64

Errors related to invalid config.

EngineError(MError)

Marine errors.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬 This is a nightly-only experimental API. (error_generic_member_access)

Provides type based access to context intended for error reports. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.