diff options
Diffstat (limited to 'libraries/spongycastle/jce/src/main/java/javax/crypto/ShortBufferException.java')
-rw-r--r-- | libraries/spongycastle/jce/src/main/java/javax/crypto/ShortBufferException.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libraries/spongycastle/jce/src/main/java/javax/crypto/ShortBufferException.java b/libraries/spongycastle/jce/src/main/java/javax/crypto/ShortBufferException.java new file mode 100644 index 000000000..273a6cf5c --- /dev/null +++ b/libraries/spongycastle/jce/src/main/java/javax/crypto/ShortBufferException.java @@ -0,0 +1,36 @@ +package javax.crypto; + +import java.security.GeneralSecurityException; + +/** + * This exception is thrown when an output buffer provided by the user + * is too short to hold the operation result. + */ +public class ShortBufferException + extends GeneralSecurityException +{ + private static final long serialVersionUID = 8427718640832943747L; + + /** + * Constructs a ShortBufferException with no detail + * message. A detail message is a String that describes this + * particular exception. + */ + public ShortBufferException() + { + } + + /** + * Constructs a ShortBufferException with the specified + * detail message. A detail message is a String that describes + * this particular exception, which may, for example, specify which + * algorithm is not available. + * + * @param msg the detail message. + */ + public ShortBufferException( + String msg) + { + super(msg); + } +} |