@Override public final UnsupportedEncodingException invalidTextFrameEncoding() { final UnsupportedEncodingException result = new UnsupportedEncodingException(String.format(getLoggingLocale(), invalidTextFrameEncoding$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String fragmentedControlFrame = "UT002005: Fragmented control frame";
/** * Convert to corresponding JDK exception. Warning, since there are synchronized method execution * please beware of the performance issue when calling this method */ public UnsupportedEncodingException toJDKException() { UnsupportedEncodingException e = new UnsupportedEncodingException() { @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 */ public UnsupportedEncodingException toJDKException() { UnsupportedEncodingException e = new UnsupportedEncodingException() { @Override public synchronized Throwable fillInStackTrace() { return this; } }; e.setStackTrace(getStackTrace()); return e; }
@Override public final UnsupportedEncodingException invalidTextFrameEncoding() { final UnsupportedEncodingException result = new UnsupportedEncodingException(String.format(getLoggingLocale(), invalidTextFrameEncoding$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String fragmentedControlFrame = "UT002005: Fragmented control frame";
@Override public final UnsupportedEncodingException invalidTextFrameEncoding() { final UnsupportedEncodingException result = new UnsupportedEncodingException(String.format(getLoggingLocale(), invalidTextFrameEncoding$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; } private static final String fragmentedControlFrame = "UT002005: Fragmented control frame";