com.monica.javacom.ciphering
Class ZeroLengthStringException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.monica.javacom.ciphering.ZeroLengthStringException
All Implemented Interfaces:
java.io.Serializable

public class ZeroLengthStringException
extends java.lang.Exception

Thrown by the encode and decode methods in classes AES and RSA to indicate that a String with the length of 0 was passed to the method.

See Also:
AES.encode(String), AES.decode(String), RSA.encode(String), RSA.decode(String), Serialized Form

Constructor Summary
ZeroLengthStringException()
          Constructs a ZeroLengthStringException with no detail message.
ZeroLengthStringException(java.lang.String text)
          Constructs a ZeroLengthStringException with the specified detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZeroLengthStringException

public ZeroLengthStringException()
Constructs a ZeroLengthStringException with no detail message.

ZeroLengthStringException

public ZeroLengthStringException(java.lang.String text)
Constructs a ZeroLengthStringException with the specified detail message.
Parameters:
text - the detail message