public IllegalStateException asJDKException() {
        IllegalStateException e = new IllegalStateException(getMessage()) {
            @Override
            public synchronized Throwable fillInStackTrace() {
                return this;
            }
        };
        e.setStackTrace(getStackTrace());
        return e;
    }
public IllegalStateException asJDKException ( ) { IllegalStateException e = new IllegalStateException ( getMessage ( ) ) { @ Override public synchronized Throwable fillInStackTrace ( ) { return this ; } } ; e . setStackTrace ( getStackTrace ( ) ) ; return e ; }
Convert to corresponding JDK exception. Warning, since there are synchronized method execution
please beware of the performance issue when calling this method
@return the JDK {@link IllegalStateException} corresponding to this exception instance