Session

enum Session : Error, CustomStringConvertible

The Exception.Session enum contains all the errors thrown when attempting to build an HTTP request.

  • Represents an error where no authentication method was provided.

    Declaration

    Swift

    case authenticationMissing
  • Represents an error where an unsupported authentication method was used.

    Declaration

    Swift

    case authenticationTypeNotAllowed(AnyClass, Authentication)
  • Thrown if an onBehalfOf subuser was specified on a request that doesn’t support impersonation.

    Declaration

    Swift

    case impersonationNotAllowed
  • Thrown if an unsupported authentication method was used.

    Declaration

    Swift

    case unsupportedAuthetication(String)
  • Thrown when no response comes back from an HTTP request.

    Declaration

    Swift

    case noResponseReceived
  • Thrown when the API response couldn’t be parsed into an expected model.

    Declaration

    Swift

    case unableToParseResponse(HTTPURLResponse)
  • A description for the error.

    Declaration

    Swift

    public var description: String { get }