Package io.tesler.core.exception
Class BusinessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.tesler.core.exception.BusinessException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EntityNotFoundException
,InnerBcException
,UnableToLockException
,VersionMismatchException
public class BusinessException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BusinessException()
BusinessException(String message)
BusinessException(String message, Throwable cause)
BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
BusinessException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BusinessException
addPopup(String message)
BusinessException
addPopup(List<String> messages)
BusinessException
addPostAction(PostAction postAction)
String
getMessage()
BusinessException
setEntity(BusinessError.Entity entity)
BusinessException
setPostActions(List<PostAction> postActions)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
addPopup
public BusinessException addPopup(List<String> messages)
-
addPopup
public BusinessException addPopup(String message)
-
setEntity
public BusinessException setEntity(BusinessError.Entity entity)
-
addPostAction
public BusinessException addPostAction(PostAction postAction)
-
setPostActions
public BusinessException setPostActions(List<PostAction> postActions)
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-