GRAILS-10336 - mark exception class with @CompileStatic