HyperwalletErrorType
public enum HyperwalletErrorType : Error, LocalizedError
The HyperwalletErrorType is the error type returned By Hyperwallet SDK.
-
Returned when an HTTP code is not in the range 2xx.
Declaration
Swift
case http(_: HyperwalletErrors, _: Int) -
Returned when a response parser process throws error.
Declaration
Swift
case parseError(_: HyperwalletErrors) -
Returned when the SDK was not initialized properly.
Declaration
Swift
case notInitialized(_: HyperwalletErrors) -
Returned when a provided URL is not valid
Declaration
Swift
case invalidUrl(_: HyperwalletErrors) -
Returned when a transaction is explicitly aborted.
Declaration
Swift
case transactionAborted(_: HyperwalletErrors) -
Returned on authentication failure
Declaration
Swift
case authenticationError(_: HyperwalletAuthenticationErrorType) -
Returned when an unexpected behavior happened.
Declaration
Swift
case unexpected(_: HyperwalletErrors) -
Returned when a GraphQL parser process throws error.
Declaration
Swift
case graphQlErrors(_: HyperwalletErrors) -
Returned when some step-in builds the request throws error.
Declaration
Swift
case invalidRequest(_: HyperwalletErrors) -
Returned when during the connection process throws error.
Declaration
Swift
case connectionError(_: HyperwalletErrors) -
The error type group
Declaration
Swift
public var group: HyperwalletErrorGroup { get } -
Gets the
HyperwalletErrorsbased on the ErrorTypeDeclaration
Swift
public func getHyperwalletErrors() -> HyperwalletErrors?Return Value
An instance of HyperwalletErrors or nil
-
Gets the
AuthenticationErrorTypeon the ErrorTypeDeclaration
Swift
public func getAuthenticationError() -> HyperwalletAuthenticationErrorType?Return Value
An instance of AuthenticationErrorType or nil
-
Gets the HTTP Code based on the ErrorType.http
Declaration
Swift
public func getHttpCode() -> Int?Return Value
The HTTP Code or return nil
View on GitHub