Struct webdriver::error::WebDriverError
[−]
[src]
pub struct WebDriverError { pub error: ErrorStatus, pub message: Cow<'static, str>, pub stack: Cow<'static, str>, pub delete_session: bool, }
Fields
error: ErrorStatus
message: Cow<'static, str>
stack: Cow<'static, str>
delete_session: bool
Methods
impl WebDriverError
[src]
fn new<S>(error: ErrorStatus, message: S) -> WebDriverError where
S: Into<Cow<'static, str>>,
[src]
S: Into<Cow<'static, str>>,
fn new_with_stack<S>(error: ErrorStatus, message: S, stack: S) -> WebDriverError where
S: Into<Cow<'static, str>>,
[src]
S: Into<Cow<'static, str>>,
fn error_code(&self) -> &'static str
[src]
fn http_status(&self) -> StatusCode
[src]
fn to_json_string(&self) -> String
[src]
Trait Implementations
impl Debug for WebDriverError
[src]
impl ToJson for WebDriverError
[src]
impl Error for WebDriverError
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Display for WebDriverError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<ParserError> for WebDriverError
[src]
fn from(err: ParserError) -> WebDriverError
[src]
Performs the conversion.
impl From<Error> for WebDriverError
[src]
fn from(err: Error) -> WebDriverError
[src]
Performs the conversion.
impl From<DecoderError> for WebDriverError
[src]
fn from(err: DecoderError) -> WebDriverError
[src]
Performs the conversion.
impl From<FromBase64Error> for WebDriverError
[src]
fn from(err: FromBase64Error) -> WebDriverError
[src]
Performs the conversion.
impl From<Box<Error>> for WebDriverError
[src]
fn from(err: Box<Error>) -> WebDriverError
[src]
Performs the conversion.