RSDErrorResultObject
public struct RSDErrorResultObject : RSDErrorResult
RSDErrorResult is a result that holds information about an error.
-
The identifier associated with the task, step, or asynchronous action.
Declaration
Swift
public let identifier: String -
A String that indicates the type of the result. This is used to decode the result using a
RSDFactory.Declaration
Swift
public let type: RSDResultType -
The start date timestamp for the result.
Declaration
Swift
public var startDate: Date -
The end date timestamp for the result.
Declaration
Swift
public var endDate: Date -
A description associated with an
NSError.Declaration
Swift
public let errorDescription: String -
A domain associated with an
NSError.Declaration
Swift
public let errorDomain: String -
The error code associated with an
NSError.Declaration
Swift
public let errorCode: Int -
Initialize using a description, domain, and code.
Declaration
Swift
public init(identifier: String, description: String, domain: String, code: Int)Parameters
identifierThe identifier for the result.
descriptionThe description of the error.
domainThe error domain.
codeThe error code.
-
Initialize using an error.
Declaration
Swift
public init(identifier: String, error: Error)Parameters
identifierThe identifier for the result.
errorThe error for the result.
View on GitHub
RSDErrorResultObject Structure Reference