Class BusinessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.enterprise.spring.boot.common.exception.BusinessException
- All Implemented Interfaces:
java.io.Serializable
public class BusinessException
extends java.lang.Exception
The business exception indicates that the arguments provided to a service did not fulfill its requirements. This also includes security
violations and a non-existing entity for a primary key. This does not include technical problems.
- Author:
- Malte Geßner
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDserial uid. -
Constructor Summary
Constructors Constructor Description BusinessException(java.lang.String code, java.lang.String description)business logic failed.BusinessException(java.lang.String code, java.lang.String description, java.lang.Throwable t)business logic failed. -
Method Summary
Modifier and Type Method Description java.lang.StringgetCode()java.lang.StringgetDescription()
-
Field Details
-
serialVersionUID
public static final long serialVersionUIDserial uid.- See Also:
- Constant Field Values
-
-
Constructor Details
-
BusinessException
public BusinessException(java.lang.String code, java.lang.String description)business logic failed.- Parameters:
code- hint for uidescription- hint for developer
-
BusinessException
public BusinessException(java.lang.String code, java.lang.String description, java.lang.Throwable t)business logic failed.- Parameters:
code- hint for uidescription- hint for developert- cause
-
-
Method Details
-
getCode
public java.lang.String getCode() -
getDescription
public java.lang.String getDescription()
-