Class CryptoGraphicException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.foundation.security.core.CryptoGraphicException
- All Implemented Interfaces:
Serializable
-=[ 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 Summary
ConstructorsConstructorDescriptionCreate a new security exception without parameters.CryptoGraphicException
(String key, String[] parameters) Create a new security exception with parameters.CryptoGraphicException
(String key, String[] parameters, Throwable cause) Create a new security exception with parameters.CryptoGraphicException
(String key, Throwable cause) Create a new security exception without parameters. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CryptoGraphicException
Create a new security exception with parameters.- Parameters:
key
- unique error keyparameters
- parameters
-
CryptoGraphicException
Create a new security exception with parameters.- Parameters:
key
- unique error keyparameters
- parameterscause
- The original cause of the error.
-
CryptoGraphicException
Create a new security exception without parameters.- Parameters:
key
- unique error key
-
CryptoGraphicException
Create a new security exception without parameters.- Parameters:
key
- unique error keycause
- The original cause of the error.
-
-
Method Details
-
getKey
Get the error key.- Returns:
- key
-
getParameters
Get the parameters.- Returns:
- parameters associated with this exception
-
getMessage
Get the exception messageFor 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 classThrowable
- Returns:
- the message
-