git_store/errors

Types

pub type GitStoreError {
  ParsingError(msg: String)
  HTTPError(msg: String)
  NoFileFound(filename: String)
  ForgeError(status: Int, body: String)
}

Constructors

  • ParsingError(msg: String)
  • HTTPError(msg: String)
  • NoFileFound(filename: String)
  • ForgeError(status: Int, body: String)

Values

pub fn http_error(
  res: response.Response(String),
) -> GitStoreError

Helper HTTP response errors

pub fn json_error(err: json.DecodeError) -> GitStoreError

Helper for JSON decode errors

Search Document