diff options
Diffstat (limited to 'core/src/main/java/org/spongycastle/util/encoders/DecoderException.java')
-rw-r--r-- | core/src/main/java/org/spongycastle/util/encoders/DecoderException.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/core/src/main/java/org/spongycastle/util/encoders/DecoderException.java b/core/src/main/java/org/spongycastle/util/encoders/DecoderException.java new file mode 100644 index 00000000..88e0b7c0 --- /dev/null +++ b/core/src/main/java/org/spongycastle/util/encoders/DecoderException.java @@ -0,0 +1,22 @@ +package org.spongycastle.util.encoders; + +/** + * Exception thrown if an attempt is made to decode invalid data, or some other failure occurs. + */ +public class DecoderException + extends IllegalStateException +{ + private Throwable cause; + + DecoderException(String msg, Throwable cause) + { + super(msg); + + this.cause = cause; + } + + public Throwable getCause() + { + return cause; + } +} |