ParserError

public enum ParserError : Swift.Error, CaseIterable, CustomDebugStringConvertible

This enum is based on the Swift Error protocol. It provides errors specific to parsing the returned data.

  • The JSON parser threw an error.

    Declaration

    Swift

    case jsonParseFailure(error: Swift.Error?)

    Parameters

    error

    The error that the parser threw.

  • CaseIterable Conformance Returns empty variants of each case.

    Declaration

    Swift

    public static var allCases: [ParserError] { get }
  • CustomDebugStringConvertible Conformance Returns a detailed, hierarchical debug description string.

    Declaration

    Swift

    public var debugDescription: String { get }