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
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: Url | |
error: Error |
CouldNotGetOutput
We could not get an output value from a WhizzML script.
Fields of CouldNotGetOutput
name: String | |
error: Error |
CouldNotReadFile
We could not read a file.
Fields of CouldNotReadFile
path: PathBuf | |
error: Error |
OutputNotAvailable
We could not access an output value of a WhizzML script.
Timeout
A request timed out.
UnexpectedHttpStatus
We received an unexpected HTTP status code.
Fields of UnexpectedHttpStatus
status: StatusCode | |
body: 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 str | |
found: String |
Other
Another kind of error occurred.
Fields of Other
error: Error |
__Nonexclusive
Add a hidden member for future API extensibility.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<Error> for Error
[src]
impl From<Error> for Error