Class CryptoGraphicException

All Implemented Interfaces:
Serializable

public final class CryptoGraphicException extends AppException
-=[ WARNING ]=--=[ WARNING ]=--=[ WARNING ]=--=[ WARNING ]=-

Warning: Do not Rename this exception to a SecurityException. Since java.lang already defines one compilers are often lost. Just as .NET Conversion by JLCA

-=[ WARNING ]=--=[ WARNING ]=--=[ WARNING ]=--=[ WARNING ]=-

The Security library only throws Security exceptions. All known system exceptions are replaced or wrapped with Security exceptions.

The SecurityException is a multilingual exception by design, with a fallback to embedded error texts.

Since:
5.1
Author:
m.hesselink
See Also:
  • Constructor Details

    • CryptoGraphicException

      public CryptoGraphicException(String key, String[] parameters)
      Create a new security exception with parameters.
      Parameters:
      key - unique error key
      parameters - parameters
    • CryptoGraphicException

      public CryptoGraphicException(String key, String[] parameters, Throwable cause)
      Create a new security exception with parameters.
      Parameters:
      key - unique error key
      parameters - parameters
      cause - The original cause of the error.
    • CryptoGraphicException

      public CryptoGraphicException(String key)
      Create a new security exception without parameters.
      Parameters:
      key - unique error key
    • CryptoGraphicException

      public CryptoGraphicException(String key, Throwable cause)
      Create a new security exception without parameters.
      Parameters:
      key - unique error key
      cause - The original cause of the error.
  • Method Details

    • getKey

      public String getKey()
      Get the error key.
      Returns:
      key
    • getParameters

      public Object[] getParameters()
      Get the parameters.
      Returns:
      parameters associated with this exception
    • getMessage

      public String getMessage()
      Get the exception message

      For compatiblity, this method returns internal (enlish) messages. Mutilingual projects should use the Key and Parameters and create their own multilingual texts for this specific exception.

      Overrides:
      getMessage in class Throwable
      Returns:
      the message