idea拋出異常的快捷鍵

在idea裏面鼠標放在紅線上顯示 Unhadnled exception:java.lang.InterruptedException 則需要拋出異常或者try-catch,如圖 快捷方式  雙擊選中紅色提示   按 Alt+Enter      Add exception to method signature 爲拋出異常 Surround  with  try/catch           
相關文章
相關標籤/搜索