MessageError
public struct MessageError: Swift.Error
MessageError is a String-based error that can be created with additional contextual key-value pairs.
-
The error message.
Declaration
Swift
public let message: String
-
Creates a MessageError with the provided message and optional additional context information.
Declaration
Swift
public init(_ message: String, context: [String: String] = [:])
-
The string representation of the error.
Declaration
Swift
public var description: String