Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.java22
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;
+ }
+}