In the version of Android 1.2 it was such that if the line is red, then when you click on Quick bug fix (Alt+Enter) , a context window appeared where you had the choice:

  1. surroind witch try catch
  2. throws

Now there are no throws .

Question: Is it possible to return the string throws ?

enter image description here

  • one
    Where do you see it? Perhaps the above simply can not be forwarded, that's not what it offers. Create a separate method to test and try. - VAndrJ
  • @VAndrJ, This is when in Android Studio or intellJ IDEA Java code you write and create a class object. And he uses Exeption. Then the line is red outlined. When you click on Alt + Enter, a context menu appears and there used to be 2 lines there. And now only the first line. The picture has 2 lines. And now always only Surround try catch. And before you could add Throw to the method. How to get them back? - Andro

0