Class CryptoException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.iqtig.packer.shared.error.crypto.CryptoException
-
- All Implemented Interfaces:
Serializable
public class CryptoException extends Exception
Exception für fachliche Fehler rund um die od-crypto Funktionalitäten.- Author:
- matthias.drummer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CryptoException(List<CryptoError> errors)
Erzeugt BusinessException anhand einer Liste von BusinessErrors.CryptoException(CryptoError error)
CryptoException(NamedError errorId, String... params)
Erzeugt BusinessException anhand eines BusinessError inkl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsNamedError(NamedError namedError)
Lieferttrue
, wenn der NamedError innerhalb dererrors
vorhanden ist.List<CryptoError>
getErrors()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CryptoException
public CryptoException(CryptoError error)
-
CryptoException
public CryptoException(List<CryptoError> errors)
Erzeugt BusinessException anhand einer Liste von BusinessErrors.- Parameters:
errors
- Liste von BusinessErrors
-
CryptoException
public CryptoException(NamedError errorId, String... params)
Erzeugt BusinessException anhand eines BusinessError inkl. Parameter.- Parameters:
errorId
- the error codeparams
- the list of parameters
-
-
Method Detail
-
getErrors
public List<CryptoError> getErrors()
-
containsNamedError
public boolean containsNamedError(NamedError namedError)
Lieferttrue
, wenn der NamedError innerhalb dererrors
vorhanden ist.- Parameters:
namedError
- NamedError- Returns:
true
, wenn der NamedError innerhalb dererrors
vorhanden ist
-
-