1818package org .apache .commons .codec ;
1919
2020/**
21- * Thrown when there is a failure condition during the encoding process. This
22- * exception is thrown when an Encoder encounters a encoding specific exception
23- * such as invalid data, inability to calculate a checksum, characters outside of the
24- * expected range.
21+ * Thrown when there is a failure condition during the encoding process. This exception is thrown when an Encoder
22+ * encounters a encoding specific exception such as invalid data, inability to calculate a checksum, characters outside
23+ * of the expected range.
2524 *
2625 * @author Apache Software Foundation
2726 * @version $Id$
@@ -38,10 +37,36 @@ public class EncoderException extends Exception {
3837 /**
3938 * Creates a new instance of this exception with an useful message.
4039 *
41- * @param message a useful message relating to the encoder specific error.
40+ * @param message
41+ * a useful message relating to the encoder specific error.
4242 */
4343 public EncoderException (String message ) {
4444 super (message );
4545 }
46- }
4746
47+ /**
48+ * Creates a EncoderException.
49+ *
50+ * @param cause
51+ * The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
52+ * value is permitted, and indicates that the cause is nonexistent or unknown.
53+ * @since 1.4
54+ */
55+ public EncoderException (Throwable cause ) {
56+ super (cause );
57+ }
58+
59+ /**
60+ * Creates a EncoderException.
61+ *
62+ * @param message
63+ * The detail message which is saved for later retrieval by the {@link #getMessage()} method.
64+ * @param cause
65+ * The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
66+ * value is permitted, and indicates that the cause is nonexistent or unknown.
67+ * @since 1.4
68+ */
69+ public EncoderException (String message , Throwable cause ) {
70+ super (message , cause );
71+ }
72+ }
0 commit comments