LCError
public struct LCError : Error
extension LCError: CustomStringConvertible, CustomDebugStringConvertible
extension LCError: LocalizedError
extension LCError: CustomNSError
LeanCloud SDK Defining Error
-
Undocumented
Declaration
Swift
public typealias UserInfo = [String : Any] -
Undocumented
Declaration
Swift
public let code: Int -
Undocumented
Declaration
Swift
public let reason: String? -
Undocumented
Declaration
Swift
public let userInfo: UserInfo? -
underlying error, only when
codeequals to9977, then this property is non-nil.Declaration
Swift
public private(set) var underlyingError: Error? { get } -
Declaration
Swift
public enum InternalErrorCode : Int -
Declaration
Swift
public enum ServerErrorCode : Int -
Convert an error to LCError.
The non-LCError will be wrapped into an underlying LCError.
Declaration
Swift
public init(error: Error)Parameters
errorThe error to be converted.
-
Declaration
Swift
public var description: String { get } -
Declaration
Swift
public var debugDescription: String { get } -
Declaration
Swift
public var errorDescription: String? { get } -
Declaration
Swift
public var failureReason: String? { get } -
Declaration
Swift
public static var errorDomain: String { get } -
Declaration
Swift
public var errorCode: Int { get } -
Declaration
Swift
public var errorUserInfo: [String : Any] { get }
View on GitHub
Install in Dash
LCError Structure Reference