Enum algorithmia::error::ErrorKind []

pub enum ErrorKind {
    Msg(String),
    Api(ApiError),
    Http(String),
    InvalidBaseUrl,
    InvalidDataUri(String),
    InvalidAlgoUri(String),
    DecodeJson(&'static str),
    EncodeJson(&'static str),
    DecodeBase64(&'static str),
    Io(String),
    InvalidContentType(String),
    MismatchedContentType(&'static str),
    UnexpectedContentType(&'static strString),
    NotFound(Url),
    MissingDataType,
    InvalidDataType(String),
    UnexpectedDataType(&'static strString),
    UnsupportedInput,
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

Error from the Algorithmia API (may be from the algorithm)

Http errors calling the API

Base URL couldn't be parsed as a Url

Invalid Data URI

Invalid Algorithm URI

Error decoding JSON

Error encoding JSON

Error decoding base64

I/O errors reading or writing data

API responded with unknown content type

Content was not valid for the specified content-type

Content type is not the expected content type

Encountered 404 Not Found

API response was missing a data type header

API response included an unknown data type header

API response included an unexpected data type header

Entrypoint not defined for input type

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for ErrorKind

Formats the value using the given formatter.

impl Display for ErrorKind

Formats the value using the given formatter.

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.