/** * Throws out an {@link UnsupportedException} with error message specified. * @param msg * the error message format pattern. * @param args * the error message format arguments. */ public static UnsupportedException unsupport(String msg, Object... args) { throw new UnsupportedException(msg, args); }
@Override public UnsupportedOperationException asJDKException() { return super.asJDKException(); } }
/** * 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 UnsupportedOperationException} convert from this exception instance */ public UnsupportedOperationException asJDKException() { UnsupportedOperationException e = new UnsupportedOperationException(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 UnsupportedOperationException} convert from this exception instance */ public UnsupportedOperationException asJDKException() { UnsupportedOperationException e = new UnsupportedOperationException(getMessage()) { @Override public synchronized Throwable fillInStackTrace() { return this; } }; e.setStackTrace(getStackTrace()); return e; }
/** * Throws out a {@link UnsupportedException} with message `to be implemented`. */ public static UnsupportedException tbd() { throw new UnsupportedException("to be implemented"); }
@Override public UnsupportedOperationException asJDKException() { return super.asJDKException(); } }
/** * Throws out an {@link UnsupportedException}. */ public static UnsupportedException unsupport() { throw new UnsupportedException(); }
/** * Throws out a {@link UnsupportedException} with message `to be implemented`. */ public static UnsupportedException tbd() { throw new UnsupportedException("to be implemented"); }
/** * Throws out a {@link UnsupportedException} with `feature` specified. * * The error message will be `"${feature} to be implemented"` * @param feature * the feature name */ public static UnsupportedException tbd(String feature) { throw new UnsupportedException("%s to be implemented", feature); }
/** * Throws out an {@link UnsupportedException}. */ public static UnsupportedException unsupport() { throw new UnsupportedException(); }
/** * Throws out an {@link UnsupportedException} with error message specified. * @param msg * the error message format pattern. * @param args * the error message format arguments. */ public static UnsupportedException unsupport(String msg, Object... args) { throw new UnsupportedException(msg, args); }
/** * Throws out a {@link UnsupportedException} with `feature` specified. * * The error message will be `"${feature} to be implemented"` * @param feature * the feature name */ public static UnsupportedException tbd(String feature) { throw new UnsupportedException("%s to be implemented", feature); }