Loadability Documentation Beta

Structure Identifiable​Error

public struct IdentifiableError: Error, Equatable, Identifiable

A uniquely identifiable error.

%3 IdentifiableError IdentifiableError Equatable Equatable IdentifiableError->Equatable Identifiable Identifiable IdentifiableError->Identifiable Error Error IdentifiableError->Error

Conforms To

Equatable
Error
Identifiable

Initializers

init?(_:​id:​)

public init?(_ underlyingError: Error?, id: String? = nil)

Creates a new IdentifiableError.

Parameters

underlying​Error Error?

The underlying Error.

id String?

An optional identifier for the error.

Properties

id

var id: String

A unique identifier for the error.

error

var error: Error

The underlying error object.

Methods

==(lhs:​rhs:​)

public static func ==(lhs: IdentifiableError, rhs: IdentifiableError) -> Bool

Checks whether two errors are the same

Parameters

lhs Identifiable​Error

An error

rhs Identifiable​Error

Another error

Returns

Whether the errors are the same