List of usage examples for org.apache.commons.codec EncoderException initCause
public synchronized Throwable initCause(Throwable cause)
From source file:com.fatwire.dta.sscrawler.util.SSUriHelper.java
protected String encode(String value) throws EncoderException { try {//w ww . java 2 s . c o m return urlCodec.encode(value, getCharSet()); } catch (UnsupportedEncodingException e) { EncoderException t = new EncoderException(e.getMessage()); t.initCause(e); throw t; } }