/** * @param wrapped A throwable object that caused the Exception. * @since 1.5 */ public VelocityException(final Throwable wrapped) { super(); this.wrapped = wrapped; ExceptionUtils.setCause(this, wrapped); }
/** * @param exceptionMessage The message to register. * @param wrapped A throwable object that caused the Exception. * @since 1.5 */ public VelocityException(final String exceptionMessage, final Throwable wrapped) { super(exceptionMessage); this.wrapped = wrapped; ExceptionUtils.setCause(this, wrapped); }
/** * @param exceptionMessage The message to register. * @param wrapped A throwable object that caused the Exception. * @since 1.5 */ public VelocityException(final String exceptionMessage, final Throwable wrapped) { super(exceptionMessage); this.wrapped = wrapped; ExceptionUtils.setCause(this, wrapped); }
/** * @param wrapped A throwable object that caused the Exception. * @since 1.5 */ public VelocityException(final Throwable wrapped) { super(); this.wrapped = wrapped; ExceptionUtils.setCause(this, wrapped); }
/** * Creates a new UnicodeInputStream object. * * @param inputStream The input stream to use for reading. * @param skipBOM If this is set to true, a BOM read from the stream is discarded. This parameter should normally be true. */ public UnicodeInputStream(final InputStream inputStream, boolean skipBOM) throws IllegalStateException, IOException { super(); this.skipBOM = skipBOM; this.inputStream = new PushbackInputStream(inputStream, MAX_BOM_SIZE); try { this.encoding = readEncoding(); } catch (IOException ioe) { IllegalStateException ex = new IllegalStateException("Could not read BOM from Stream"); ExceptionUtils.setCause(ex, ioe); throw ex; } }
/** * Creates a new UnicodeInputStream object. * * @param inputStream The input stream to use for reading. * @param skipBOM If this is set to true, a BOM read from the stream is discarded. This parameter should normally be true. */ public UnicodeInputStream(final InputStream inputStream, boolean skipBOM) throws IllegalStateException, IOException { super(); this.skipBOM = skipBOM; this.inputStream = new PushbackInputStream(inputStream, MAX_BOM_SIZE); try { this.encoding = readEncoding(); } catch (IOException ioe) { IllegalStateException ex = new IllegalStateException("Could not read BOM from Stream"); ExceptionUtils.setCause(ex, ioe); throw ex; } }