Structure
IdentifiableError
public struct IdentifiableError: Error, Equatable, Identifiable
A uniquely identifiable error.
Relationships
Conforms To
EquatableErrorIdentifiable
Initializers
init?(_:id:)
public init?(_ underlyingError: Error?, id: String? = nil)
Creates a new IdentifiableError.
Parameters
| Name | Type | Description |
|---|---|---|
| underlyingError | Error? |
The underlying |
| 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
| Name | Type | Description |
|---|---|---|
| lhs | IdentifiableError |
An error |
| rhs | IdentifiableError |
Another error |
Returns
Whether the errors are the same