10 lines
166 B
Swift
10 lines
166 B
Swift
|
enum Error: Swift.Error, CustomStringConvertible {
|
||
|
case message(String)
|
||
|
|
||
|
var description: String {
|
||
|
switch self {
|
||
|
case .message(let text): return text
|
||
|
}
|
||
|
}
|
||
|
}
|