Enum bigml::Error[][src]

pub enum Error {
    CouldNotAccessUrl {
        url: Url,
        error: Error,
    },
    CouldNotGetOutput {
        name: String,
        error: Error,
    },
    CouldNotReadFile {
        path: PathBuf,
        error: Error,
    },
    OutputNotAvailable,
    Timeout,
    UnexpectedHttpStatus {
        status: StatusCode,
        body: String,
    },
    WaitFailed {
        id: String,
        message: String,
    },
    WrongResourceType {
        expected: &'static str,
        found: String,
    },
    Other {
        error: Error,
    },
    __Nonexclusive,
}

A BigML-related error.

Variants

We could not access the specified URL.

WARNING: Do not construct this directly, but use Error::could_not_access_url to handle various URL sanitization and security issues.

Fields of CouldNotAccessUrl

We could not get an output value from a WhizzML script.

Fields of CouldNotGetOutput

We could not read a file.

Fields of CouldNotReadFile

We could not access an output value of a WhizzML script.

A request timed out.

We received an unexpected HTTP status code.

Fields of UnexpectedHttpStatus

We tried to create a BigML resource, but we failed. Display a dashboard URL to make it easy to look up the actual error.

Fields of WaitFailed

The ID of the resource that we were waiting on.

The message that was returned.

We found a type mismatch deserializing a BigML resource ID.

Fields of WrongResourceType

Another kind of error occurred.

Fields of Other

Add a hidden member for future API extensibility.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error