Error

public enum Error: Swift.Error

An enum to encapsulate errors that may arise in working with JSON.

  • The index is out of bounds for a JSON array

    Declaration

    Swift

    case indexOutOfBounds(index: Int)
  • The key was not found in the JSON dictionary

    Declaration

    Swift

    case keyNotFound(key: String)
  • Unexpected JSON value was found that is not convertible to type

    Declaration

    Swift

    case valueNotConvertible(value: JSON, to: Any.Type)