16 lines
309 B
Swift
16 lines
309 B
Swift
|
public struct DevRantApiError: Swift.Error {
|
||
|
let message: String
|
||
|
}
|
||
|
|
||
|
public extension DevRantApiError {
|
||
|
struct CodingData: Decodable, Swift.Error {
|
||
|
let error: String
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public extension DevRantApiError.CodingData {
|
||
|
var decoded: DevRantApiError {
|
||
|
.init(message: error)
|
||
|
}
|
||
|
}
|