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

Trait Implementations

impl Error for Error

fn description(&self) -> &str

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

impl Display for Error

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

impl From<NulError> for Error

fn from(_: NulError) -> Error

Derived Implementations

impl Debug for Error

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