Groovy web console

subscribe to the feed Subscribe
to this
site

try without catch

Published 1 month ago by MS
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
try { //outside try
    try {
      println ">>>in try<<<"
      throw new Exception("OOOOOooooo!!!")
    } catch(exI) {
      println ">>>in catch<<<"
    } finally {
      println ">>>in finaly<<<"
    }
} catch(exO){
    println ex0
}

println "---------------------"

try { //outside try
    try {
      println ">>>in try<<<"
      throw new Exception("OOOOOooooo!!!")
    } finally {
      println ">>>in finaly<<<"
    }
} catch(exO){
    println exO
}