UNErrorReason
public enum UNErrorReason
Reasons why a request can fail.
-
Couldn’t contact Unsplash.
Declaration
Swift
case serverNotReached
-
Unsplash couldn’t fulfill the query. Check the ResponseStatusCode for more info.
Declaration
Swift
case serverError(ResponseStatusCode?)
-
The data received does not match the expected format.
Declaration
Swift
case unableToParseDataCorrectly
-
The response from the server could not be parsed.
Declaration
Swift
case unknownServerResponse
-
No data, no response and no error was received.
Declaration
Swift
case unknownError
-
AppID and Secret were not previously set.
Declaration
Swift
case credentialsNotSet
-
Returns a Boolean value indicating whether two error reason are equal.
Declaration
Swift
public static func ==(lhs: UNErrorReason, rhs: UNErrorReason) -> Bool
-
Returns a Boolean value indicating whether two error reason are not equal.
Declaration
Swift
public static func !=(lhs: UNErrorReason, rhs: UNErrorReason) -> Bool