BookingError

public enum BookingError : Error
extension BookingError: LocalizedError

Different errors a booking can have

  • Date was not supplied

    Declaration

    Swift

    case noDate
  • The requested date is unavailable

    Declaration

    Swift

    case badDate
  • The BookingOption is required and was not supplied

    Declaration

    Swift

    case noOption
  • The requested number of passes is not available

    Declaration

    Swift

    case noPasses(traceId: String)
  • Cutoff age exceeded, the age for adult passes is too old

    Declaration

    Swift

    case veryOldTraveler(traceId: String)
  • The age for adult pass is invalid

    Declaration

    Swift

    case adultAgeInvalid(traceId: String)
  • The requested number of units is below the minimum

    Declaration

    Swift

    case belowMinUnits(traceId: String)
  • Children are not allowed without adults

    Declaration

    Swift

    case unaccompaniedChildren(traceId: String)
  • Declaration

    Swift

    public var errorDescription: String? { get }