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
responseThe response object returned from the original network request
dataThe Data object associated with the response
View on GitHub
Install in Dash
DKServerError Structure Reference