01: package org.bouncycastle.crypto;
02:
03: /**
04: * this exception is thrown if a buffer that is meant to have output
05: * copied into it turns out to be too short, or if we've been given
06: * insufficient input. In general this exception will get thrown rather
07: * than an ArrayOutOfBounds exception.
08: */
09: public class DataLengthException extends RuntimeCryptoException {
10: /**
11: * base constructor.
12: */
13: public DataLengthException() {
14: }
15:
16: /**
17: * create a DataLengthException with the given message.
18: *
19: * @param message the message to be carried with the exception.
20: */
21: public DataLengthException(String message) {
22: super(message);
23: }
24: }
|