enum MyError: Error {
    case FoundNil(String)
}
throw MyError.FoundNil("BOOM!")
Advertisements