ServiceError
@objc(VSSServiceError)
open class ServiceError : NSObject, CustomNSError
Represent card service error
-
Http status code
Declaration
Swift
@objc public let httpStatusCode: Int -
Recieved and decoded
RawServiceErrorDeclaration
Swift
@objc public let rawServiceError: RawServiceError -
Error domain
Declaration
Swift
@objc public let errorDomain: String -
Initializer
Declaration
Swift
@objc public init(httpStatusCode: Int, rawServiceError: RawServiceError, errorDomain: String? = nil)Parameters
httpStatusCodehttp status code
rawServiceErrorraw service error
errorDomainerror domain
-
Error domain or Error instances thrown from Service
Declaration
Swift
@objc public static var errorDomain: String { get } -
Code of error
Declaration
Swift
@objc public var errorCode: Int { get } -
Provides info about the error. Error message can be recieve by NSLocalizedDescriptionKey
Declaration
Swift
@objc public var errorUserInfo: [String : Any] { get }
ServiceError Class Reference