Struct git2::Error
[−]
[src]
pub struct Error { // some fields omitted }
A structure to represent errors coming out of libgit2.
Methods
impl Error
fn last_error() -> 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 raw_code(&self) -> git_error_code
Return the raw error code associated with this error.
fn message(&self) -> &str
Return the message associated with this error