DKServerError
public struct DKServerError : Error
An error returned from the Dropmark API
-
The network status code of the error response
Declaration
Swift
public var statusCode: Int
-
The string identifer of the server error
Declaration
Swift
public var identifier: String?
-
The message the server returned with the error
Declaration
Swift
public var message: String?
-
Initialize an error from the server response.
Declaration
Swift
public init?(response: HTTPURLResponse?, data: Data?)
Parameters
response
The response object returned from the original network request
data
The Data object associated with the response