private Exception newPlainException()

in transform/src/patch/java/org/quartz/core/QuartzSchedulerMBeanImpl.java [331:340]


    private Exception newPlainException(Exception e) {
        String type = e.getClass().getName();
        if(type.startsWith("java.") || type.startsWith("javax.") || type.startsWith("jakarta.")) {
            return e;
        } else {
            Exception result = new Exception(e.getMessage());
            result.setStackTrace(e.getStackTrace());
            return result;
        }
    }