protected void blameAndRethrow(GenerationException e) { if (!blameDetailsEnabled) { final RuntimeException blamePlaceHolder = new RuntimeException( "Problem during Errai code generation. Please set system property -Derrai.codegen.details=true for more details."); blamePlaceHolder.initCause(e); throw blamePlaceHolder; } if (e.getCause() == null) { GenUtil.rewriteBlameStackTrace(blame); e.initCause(blame); } throw e; } }
protected void blameAndRethrow(GenerationException e) { if (!blameDetailsEnabled) { final RuntimeException blamePlaceHolder = new RuntimeException( "Problem during Errai code generation. Please set system property -Derrai.codegen.details=true for more details."); blamePlaceHolder.initCause(e); throw blamePlaceHolder; } if (e.getCause() == null) { GenUtil.rewriteBlameStackTrace(blame); e.initCause(blame); } throw e; } }