Struct screeps_api::error::Error [] [src]

pub struct Error { /* fields omitted */ }

Error deriving from some API call.

Methods

impl Error
[src]

[src]

Creates a new error from the given error and the given possible url.

[src]

Creates a new error from the given error, the given possible url, and the given possible JSON data.

[src]

Creates a new error from the given error, the given possible url, and the given possible body.

[src]

Retrieves the type specifying what kind of error, and a detailed description if available.

[src]

Retrieves the URL associated with this error, if any.

[src]

Retrieves the JSON data associated with this error, if any.

[src]

Retrieves the body data associated with this error, if any.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl From<ErrorKind> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<ParseError> for Error
[src]

[src]

Performs the conversion.

impl From<Error> for Error
[src]

[src]

Performs the conversion.

impl From<StatusCode> for Error
[src]

[src]

Performs the conversion.

impl From<ApiError> for Error
[src]

[src]

Performs the conversion.

impl<'a> From<RoomNameParseError<'a>> for Error
[src]

[src]

Performs the conversion.

impl From<NoToken> for Error
[src]

[src]

Creates an Error with ErrorKind::Unauthorized.

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

[src]

A short description of the error. Read more

[src]

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