class
Agate::Error
- Agate::Error
- Exception
- Reference
- Object
Overview
An Error is an Exception raised by libgit2 operations.
Defined in:
agate/errors.crClass Method Summary
-
.last(code : C::ErrorCode | Nil = nil)
Gets the last libgit2 error wrapped in an Error.
-
.last?
Returns true if libgit2 has a pending error.
-
.raise!(code : C::ErrorCode | Nil = nil)
Raises the last Error.
-
.raise?(code : C::ErrorCode | Nil = nil)
Raises the last error if there is one.
-
.unless!(& : -> C::ErrorCode)
Raises an Error unless the block returns OK.
Instance Method Summary
-
#code : ErrorCode | Nil
The error code, if available.