Package org.cxbox.core.exception
Class BusinessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cxbox.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 BusinessExceptionaddPopup(String message)BusinessExceptionaddPopup(List<String> messages)BusinessExceptionaddPostAction(PostAction postAction)StringgetMessage()BusinessExceptionsetEntity(BusinessError.Entity entity)BusinessExceptionsetPostActions(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:
getMessagein classThrowable
-
-