File tree Expand file tree Collapse file tree
src/java/org/apache/commons/codec Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public Object decode(Object object) throws DecoderException {
187187 char [] charArray = object instanceof String ? ((String ) object ).toCharArray () : (char []) object ;
188188 return decodeHex (charArray );
189189 } catch (ClassCastException e ) {
190- throw new DecoderException (e .getMessage ());
190+ throw new DecoderException (e .getMessage (), e );
191191 }
192192 }
193193
Original file line number Diff line number Diff line change @@ -134,12 +134,10 @@ public String encode(String value) throws EncoderException {
134134 * representation.
135135 *
136136 * @param value
137- * Base64 string to convert into its original form
138- *
137+ * Base64 string to convert into its original form
139138 * @return original string
140- *
141139 * @throws DecoderException
142- * A decoder exception is thrown if a failure condition is encountered during the decode process.
140+ * A decoder exception is thrown if a failure condition is encountered during the decode process.
143141 */
144142 public String decode (String value ) throws DecoderException {
145143 if (value == null ) {
@@ -148,7 +146,7 @@ public String decode(String value) throws DecoderException {
148146 try {
149147 return decodeText (value );
150148 } catch (UnsupportedEncodingException e ) {
151- throw new DecoderException (e .getMessage ());
149+ throw new DecoderException (e .getMessage (), e );
152150 }
153151 }
154152
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ public String decode(String pString) throws DecoderException {
230230 try {
231231 return decodeText (pString );
232232 } catch (UnsupportedEncodingException e ) {
233- throw new DecoderException (e .getMessage ());
233+ throw new DecoderException (e .getMessage (), e );
234234 }
235235 }
236236
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ public String decode(String pString) throws DecoderException {
302302 try {
303303 return decode (pString , getDefaultCharset ());
304304 } catch (UnsupportedEncodingException e ) {
305- throw new DecoderException (e .getMessage ());
305+ throw new DecoderException (e .getMessage (), e );
306306 }
307307 }
308308
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public String decode(String pString) throws DecoderException {
296296 try {
297297 return decode (pString , getDefaultCharset ());
298298 } catch (UnsupportedEncodingException e ) {
299- throw new DecoderException (e .getMessage ());
299+ throw new DecoderException (e .getMessage (), e );
300300 }
301301 }
302302
You can’t perform that action at this time.
0 commit comments