Struct webdriver::error::WebDriverError [] [src]

pub struct WebDriverError {
    pub status: ErrorStatus,
    pub message: String,
    // some fields omitted
}

Fields

status: ErrorStatus message: String

Methods

impl WebDriverError
[src]

fn new(status: ErrorStatus, message: &str) -> WebDriverError

fn status_code(&self) -> &'static str

fn http_status(&self) -> StatusCode

fn to_json_string(&self) -> String

fn set_delete_session(&mut self)

fn delete_session(&self) -> bool

Trait Implementations

impl Debug for WebDriverError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for WebDriverError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ToJson for WebDriverError
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON

impl Error for WebDriverError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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

impl From<ParserError> for WebDriverError
[src]

fn from(err: ParserError) -> WebDriverError

Performs the conversion.

impl From<IoError> for WebDriverError
[src]

fn from(err: IoError) -> WebDriverError

Performs the conversion.