📜  data-flair.training 博客异常 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:06.893000             🧑  作者: Mango

代码示例1
try {
  //Code where exception can occur
}
catch(ExceptionTypeA e1) {
  //code that executes if Exception of type A occurs
}
catch(ExceptionTypeB e2) {
  //code that executes if Exception of type B occurs. 
}