HAError

public enum HAError : Error, Equatable, LocalizedError

Overall error wrapper for the library

  • An error occurred in parsing or other internal handling

    Declaration

    Swift

    case `internal`(debugDescription: String)
  • An underlying error occurred, in e.g. Codable parsing or otherwise. NSError because Equatable is annoying.

    Declaration

    Swift

    case underlying(NSError)
  • An error response from the server indicating a request problem

    Declaration

    Swift

    case external(ExternalError)
  • A description of the error, see LocalizedError or access via localizedDescription

    Declaration

    Swift

    public var errorDescription: String? { get }
  • Description of a server-delivered error

    See more

    Declaration

    Swift

    public struct ExternalError : Equatable