SKError
public enum SKError : LocalizedError
Undocumented
-
Thrown when a SourceKit request fails.
The associated value is a representation of the SOURCEKITD_ERROR_*.
Declaration
Swift
case sourceKitRequestFailed(Request.Error) -
Thrown when an error occurs during the decoding of a value.
The associated value is a string that describes the error.
Declaration
Swift
case jsonDecodingFailed(String) -
Thrown when an error occurs during the encoding of a value.
The associated value is a string that describes the error.
Declaration
Swift
case jsonEncodingFailed(String) -
Thrown when encoding a JSON string to
Datafails.Declaration
Swift
case jsonDataEncodingFailed -
Thrown when SourceKitten or the XPC service crashes.
Declaration
Swift
case sourceKittenCrashed -
Thrown when an unknown error occurs.
The associated value is a string that describes the error.
Declaration
Swift
case unknown(String)
-
Undocumented
Declaration
Swift
public var localizedDescription: String { get } -
Declaration
Swift
public var errorDescription: String? { get }
-
Creates a
SKError.jsonDecodingFailed(_)error from aDecodingError.Declaration
Swift
public static func jsonDecodingFailed(error: DecodingError) -> SKErrorParameters
errorThe decoding error to create an
SKErrorfor.Return Value
A
SKError.jsonDecodingFailed(_)error created from theerror. -
Creates a
SKError.jsonEncodingFailed(_)error from anEncodingError.Declaration
Swift
public static func jsonEncodingFailed(error: EncodingError) -> SKErrorParameters
errorThe encoding error to create an
SKErrorfor.Return Value
A
SKError.jsonEncodingFailed(_)error created from theerror. -
Creates a
SKError.unknown(_)error from anError.Declaration
Swift
public static func unknown(error: Error) -> SKErrorParameters
errorThe error to create an
SKErrorfor.Return Value
A
SKError.unknown(_)error created from theerror.
SKError Enumeration Reference