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
See moreException.Authentication
enum contains all the errors thrown byAuthentication
.Declaration
Swift
enum Authentication : Error, CustomStringConvertible
-
The
See moreException.ContentType
enum contains all the errors thrown byContentType
.Declaration
Swift
enum ContentType : Error, CustomStringConvertible
-
The
See moreException.Global
struct contains global errors that can be thrown.Declaration
Swift
enum Global : Error, CustomStringConvertible
-
The
See moreException.Mail
enum contains all the errors thrown for the mail send API.Declaration
Swift
enum Mail : Error, CustomStringConvertible
-
The
See moreException.Request
enum contains all the errors thrown byRequest
.Declaration
Swift
enum Request : Error, CustomStringConvertible
-
The
See moreException.Session
enum contains all the errors thrown when attempting to build an HTTP request.Declaration
Swift
enum Session : Error, CustomStringConvertible