Exception
public struct Exception
The Exception struct contains all the errors that the SendGrid-Swift
library can throw.
-
The
Exception.APIResponsestruct represents the body returned from an API call that is indicating an error occurred.Declaration
Swift
struct APIResponse : Error, Codable -
The
Exception.APIMessagestruct represents a single error that can be returned from the API.Declaration
Swift
struct APIMessage : Codable
-
The
See moreException.Authenticationenum contains all the errors thrown byAuthentication.Declaration
Swift
enum Authentication : Error, CustomStringConvertible
-
The
See moreException.ContentTypeenum contains all the errors thrown byContentType.Declaration
Swift
enum ContentType : Error, CustomStringConvertible
-
The
See moreException.Globalstruct contains global errors that can be thrown.Declaration
Swift
enum Global : Error, CustomStringConvertible
-
The
See moreException.Mailenum contains all the errors thrown for the mail send API.Declaration
Swift
enum Mail : Error, CustomStringConvertible
-
The
See moreException.Requestenum contains all the errors thrown byRequest.Declaration
Swift
enum Request : Error, CustomStringConvertible
-
The
See moreException.Sessionenum contains all the errors thrown when attempting to build an HTTP request.Declaration
Swift
enum Session : Error, CustomStringConvertible
View on GitHub
Exception Structure Reference