Exception

public struct Exception

The Exception struct contains all the errors that the SendGrid-Swift library can throw.

  • The Exception.APIResponse struct represents the body returned from an API call that is indicating an error occurred.

    Declaration

    Swift

    struct APIResponse : Error, Codable
  • The Exception.APIMessage struct represents a single error that can be returned from the API.

    Declaration

    Swift

    struct APIMessage : Codable
  • The Exception.Authentication enum contains all the errors thrown by Authentication.

    See more

    Declaration

    Swift

    enum Authentication : Error, CustomStringConvertible
  • The Exception.ContentType enum contains all the errors thrown by ContentType.

    See more

    Declaration

    Swift

    enum ContentType : Error, CustomStringConvertible
  • The Exception.Global struct contains global errors that can be thrown.

    See more

    Declaration

    Swift

    enum Global : Error, CustomStringConvertible
  • The Exception.Mail enum contains all the errors thrown for the mail send API.

    See more

    Declaration

    Swift

    enum Mail : Error, CustomStringConvertible
  • The Exception.Request enum contains all the errors thrown by Request.

    See more

    Declaration

    Swift

    enum Request : Error, CustomStringConvertible
  • The Exception.Session enum contains all the errors thrown when attempting to build an HTTP request.

    See more

    Declaration

    Swift

    enum Session : Error, CustomStringConvertible
  • The Exception.Statistic enum represents all the errors that can be thrown on the statistics calls.

    See more

    Declaration

    Swift

    enum Statistic : Error, CustomStringConvertible