Skip to content

Instantly share code, notes, and snippets.

@omochi
Created November 5, 2019 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omochi/2cd574de36dc22929c0d8a1239f19f49 to your computer and use it in GitHub Desktop.
Save omochi/2cd574de36dc22929c0d8a1239f19f49 to your computer and use it in GitHub Desktop.
import Foundation
public struct MessageError: LocalizedError, CustomStringConvertible {
public var message: String
public init(_ message: String) {
self.message = message
}
public var description: String { message }
public var errorDescription: String? { description }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment