Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.credentialsstorage
Class CryptoException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.java.sip.communicator.service.credentialsstorage.CryptoException
All Implemented Interfaces:
Serializable

public class CryptoException
extends Exception

Exception thrown by the Crypto encrypt/decrypt interface methods.

Author:
Dmitri Melnikov
See Also:
Serialized Form

Field Summary
static int DECRYPTION_ERROR
          Set when decryption fails.
static int ENCRYPTION_ERROR
          Set when encryption fails.
static int WRONG_KEY
          Set when a decryption fail is caused by the wrong key.
 
Constructor Summary
CryptoException(int code, Exception cause)
          Constructs the crypto exception.
 
Method Summary
 int getErrorCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENCRYPTION_ERROR

public static final int ENCRYPTION_ERROR
Set when encryption fails.

See Also:
Constant Field Values

DECRYPTION_ERROR

public static final int DECRYPTION_ERROR
Set when decryption fails.

See Also:
Constant Field Values

WRONG_KEY

public static final int WRONG_KEY
Set when a decryption fail is caused by the wrong key.

See Also:
Constant Field Values
Constructor Detail

CryptoException

public CryptoException(int code,
                       Exception cause)
Constructs the crypto exception.

Parameters:
code - the error code
cause - the original exception that this instance wraps
Method Detail

getErrorCode

public int getErrorCode()
Returns:
the error code for the exception.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.