[][src]Enum bigml::Error

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

A BigML-related error.

Variants

CouldNotAccessUrl

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

url: Urlerror: Error
CouldNotGetOutput

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

Fields of CouldNotGetOutput

name: Stringerror: Error
CouldNotReadFile

We could not read a file.

Fields of CouldNotReadFile

path: PathBuferror: Error
OutputNotAvailable

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

PaymentRequired

BigML says that payment is required for this request, perhaps because we have hit plan limits.

Fields of PaymentRequired

url: Urlbody: String
Timeout

A request timed out.

UnexpectedHttpStatus

We received an unexpected HTTP status code.

Fields of UnexpectedHttpStatus

url: Urlstatus: StatusCodebody: String
WaitFailed

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

id: String

The ID of the resource that we were waiting on.

message: String

The message that was returned.

WrongResourceType

We found a type mismatch deserializing a BigML resource ID.

Fields of WrongResourceType

expected: &'static strfound: String
Other

Another kind of error occurred.

Fields of Other

error: Error
__Nonexclusive

Add a hidden member for future API extensibility.

Trait Implementations

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Fail for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err