# любой метод может выбросить ошибкуdef method_with_exception() raise "test exception"endmethod_with_exception() # <-Error