Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.
mattt edited this page Jul 27, 2020 · 2 revisions

Error

A libgit error.

public struct Error: Swift.Error

Inheritance

Swift.Error

Initializers

init(code:message:)

init<Code: FixedWidthInteger>(code: Code, message: String? = Error.lastErrorMessage)

Properties

code

The error code.

let code: Int

Error codes correspond to git_error_code constants, like GIT_ENOTFOUND.

message

The error message, if any.

let message: String?

lastErrorMessage

var lastErrorMessage: String?

Clone this wiki locally