Class BusinessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.adminfaces.template.exception.BusinessException
-
- All Implemented Interfaces:
Serializable
public class BusinessException extends RuntimeException implements Serializable
Based on https://github.com/conventions/core/blob/master/src/main/java/org/conventionsframework/exception/BusinessException.java Application exception used to show faces messages when business exception is thrown.
-
-
Constructor Summary
Constructors Constructor Description BusinessException()BusinessException(String detail)BusinessException(String summary, jakarta.faces.application.FacesMessage.Severity severity)BusinessException(String summary, jakarta.faces.application.FacesMessage.Severity severity, String idToFocus)BusinessException(String summary, String detail)BusinessException(String summary, String detail, jakarta.faces.application.FacesMessage.Severity severity)BusinessException(String summary, String detail, String idToFocus)BusinessException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BusinessExceptionaddException(BusinessException be)voidbuild()StringgetDetail()List<BusinessException>getExceptionList()StringgetFieldId()jakarta.faces.application.FacesMessage.SeveritygetSeverity()StringgetSummary()BusinessExceptionsetDetail(String detail)BusinessExceptionsetExceptionList(List<BusinessException> exceptionList)BusinessExceptionsetFieldId(String fieldId)BusinessExceptionsetSeverity(jakarta.faces.application.FacesMessage.Severity severity)BusinessExceptionsetSummary(String summary)-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BusinessException
public BusinessException()
-
BusinessException
public BusinessException(Throwable cause)
-
BusinessException
public BusinessException(String detail)
- Parameters:
detail- exception detail
-
BusinessException
public BusinessException(String summary, String detail)
- Parameters:
summary- exception summarydetail- exception detail
-
BusinessException
public BusinessException(String summary, jakarta.faces.application.FacesMessage.Severity severity)
- Parameters:
summary- exception summaryseverity- Faces message severity
-
BusinessException
public BusinessException(String summary, jakarta.faces.application.FacesMessage.Severity severity, String idToFocus)
- Parameters:
summary- exception summaryseverity- Faces message severityidToFocus- view component id to scroll to when exception occurs
-
BusinessException
public BusinessException(String summary, String detail, String idToFocus)
- Parameters:
summary- exception summarydetail- exception detailidToFocus- view component id to scroll to when exception occurs
-
-
Method Detail
-
getDetail
public String getDetail()
-
setDetail
public BusinessException setDetail(String detail)
-
getSummary
public String getSummary()
-
setSummary
public BusinessException setSummary(String summary)
-
getSeverity
public jakarta.faces.application.FacesMessage.Severity getSeverity()
-
getFieldId
public String getFieldId()
-
setFieldId
public BusinessException setFieldId(String fieldId)
-
setSeverity
public BusinessException setSeverity(jakarta.faces.application.FacesMessage.Severity severity)
-
getExceptionList
public List<BusinessException> getExceptionList()
-
setExceptionList
public BusinessException setExceptionList(List<BusinessException> exceptionList)
-
addException
public BusinessException addException(BusinessException be)
-
build
public void build()
-
-