Skip to content

Instantly share code, notes, and snippets.

@sue445
Last active December 28, 2015 13:49
Show Gist options
  • Save sue445/7510256 to your computer and use it in GitHub Desktop.
Save sue445/7510256 to your computer and use it in GitHub Desktop.
Heart Catch Precure!
def heart(){
println "Heart"
throw new Exception()
}
def precure(){
println "Precure!"
}
try{
heart()
} catch(e){
println "Catch!"
precure()
}
@sue445
Copy link
Author

sue445 commented Nov 17, 2013

$groovy HeartCatchPrecure.groovy

Heart
Catch!
Precure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment