Save This Page
Home » crypto-143 » org.bouncycastle.crypto » [javadoc | source]
org.bouncycastle.crypto
public class: DataLengthException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         java.lang.RuntimeException
            org.bouncycastle.crypto.RuntimeCryptoException
               org.bouncycastle.crypto.DataLengthException

All Implemented Interfaces:
    Serializable

this exception is thrown if a buffer that is meant to have output copied into it turns out to be too short, or if we've been given insufficient input. In general this exception will get thrown rather than an ArrayOutOfBounds exception.
Constructor:
 public DataLengthException() 
 public DataLengthException(String message) 
    create a DataLengthException with the given message.
    Parameters:
    message - the message to be carried with the exception.
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait