编辑代码

do {
    let printerResponse = try sendToPrinter("Gutenberg")
    print(printerResponse)
} catch PrinterError.OnFire {
    print("I'11 just put this over here, with the rest of the fire.")
} catch let PrinterError as PrinterError {
    print("Printer error: \(PrinterError).")
} catch {
    print(error)
}