1package org.bouncycastle.crypto;
2
3/**
4 * this exception is thrown if a buffer that is meant to have output
5 * copied into it turns out to be too short, or if we've been given
6 * insufficient input. In general this exception will get thrown rather
7 * than an ArrayOutOfBounds exception.
8 */
9public class DataLengthException
10    extends RuntimeCryptoException
11{
12    /**
13     * base constructor.
14     */
15    public DataLengthException()
16    {
17    }
18
19    /**
20     * create a DataLengthException with the given message.
21     *
22     * @param message the message to be carried with the exception.
23     */
24    public DataLengthException(
25        String  message)
26    {
27        super(message);
28    }
29}
30