Created
November 5, 2019 06:25
-
-
Save omochi/2cd574de36dc22929c0d8a1239f19f49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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