RSDErrorResultObject

public struct RSDErrorResultObject : RSDErrorResult, Codable

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

    identifier

    The identifier for the result.

    description

    The description of the error.

    domain

    The error domain.

    code

    The error code.

  • Initialize using an error.

    Declaration

    Swift

    public init(identifier: String, error: Error)

    Parameters

    identifier

    The identifier for the result.

    error

    The error for the result.