Struct git2::Error
[−]
[src]
pub struct Error { // some fields omitted }
A structure to represent errors coming out of libgit2.
Methods
impl Error
[src]
fn last_error(code: c_int) -> Option<Error>
Returns the last error, or None
if one is not available.
fn from_str(s: &str) -> Error
Creates a new error from the given string as the error.
fn code(&self) -> ErrorCode
Return the error code associated with this error.
fn class(&self) -> ErrorClass
Return the error class associated with this error.
fn raw_code(&self) -> git_error_code
Return the raw error code associated with this error.
fn raw_class(&self) -> git_error_t
Return the raw error class associated with this error.
fn message(&self) -> &str
Return the message associated with this error
Trait Implementations
impl Debug for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more