Company: IndusInd bank on-campus_19may
Difficulty: easy
What is the output of the following Swift code when handleErrors() is called? Code enum CustomError: Error { case error1 case error2 case error3 } func performOperation() throws { throw CustomError.error1 } func handleErrors() { do { try performOperation() print("Operation successful.") } catch CustomError.error1 { print("Error 1 occurred.") } catch CustomError.error2 { print("Error 2 occurred.") } catch { print("Unknown error occurred.") } } Options Operation successful Error 1 occurred Unknown error occurred Error: performOperation() Input Format There is no input for this question. Output Format Print the text of the correct option exactly as it appears in the option list.