Groovy web console

subscribe to the feed Subscribe
to this

Custom Exception

Published 2 months ago by Dmitry Puzyrev with tags Exception
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
class MyCustomException extends Exception {

try {
    throw new MyCustomException()
} catch (MyCustomException e) {
    print('Exception is ' + e)