why 'try' can't catche the execption

前端 未结 0 438
轻奢々
轻奢々 2020-12-18 15:00

testtry.groovy

try{
 def giturl=repo
}catch (Exception e){
  println e
}

the var repo is null ,it is not predictable , I want that it can be

相关标签:
回答
  • 消灭零回复
提交回复
热议问题