Example usage for org.apache.commons.codec DecoderException initCause

List of usage examples for org.apache.commons.codec DecoderException initCause

Introduction

In this page you can find the example usage for org.apache.commons.codec DecoderException initCause.

Prototype

public synchronized Throwable initCause(Throwable cause) 

Source Link

Document

Initializes the cause of this throwable to the specified value.

Usage

From source file:com.fatwire.dta.sscrawler.util.SSUriHelper.java

protected String decode(String value) throws DecoderException {
    try {//from   w w  w.j  av  a  2 s .com
        return urlCodec.decode(value, getCharSet());
    } catch (UnsupportedEncodingException e) {
        DecoderException t = new DecoderException(e.getMessage());
        t.initCause(e);
        throw t;
    }
}