Class BizLogicAppException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppException
jp.ecuacion.lib.core.exception.checked.SingleAppException
jp.ecuacion.lib.core.exception.checked.BizLogicAppException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
EmbeddedParameterUtil.ParameterNotFoundException, EmbeddedParameterUtil.StringFormatIncorrectException
Is used for buziness logic exceptions.
Messages are designated by messageId, which is defined in messages[_xxx].properties.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBizLogicAppException(String[] itemPropertyPaths, String messageId, String... messageArgs) Constructs a new instance withitemPropertyPaths,messageIdandmessageArgs.BizLogicAppException(String[] itemPropertyPaths, String messageId, PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withitemPropertyPaths,messageIdandmessageArgs.BizLogicAppException(String messageId, String... messageArgs) Constructs a new instance withmessageIdandmessageArgs.BizLogicAppException(String messageId, PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withmessageIdandmessageArgs. -
Method Summary
Modifier and TypeMethodDescriptionProvidesThrowable.initCause(Throwable)with method chain.String[]Provides the location of an item at which this error occurred.Gets messageArgs.Gets messageId.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BizLogicAppException
public BizLogicAppException(@RequireNonnull String messageId, @RequireNonnull String... messageArgs) Constructs a new instance withmessageIdandmessageArgs.- Parameters:
messageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@Nullable String[] itemPropertyPaths, @RequireNonnull String messageId, @RequireNonnull String... messageArgs) Constructs a new instance withitemPropertyPaths,messageIdandmessageArgs.- Parameters:
itemPropertyPaths- the itemPropertyPaths related to the exceptionmessageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@RequireNonnull String messageId, @RequireNonnull PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withmessageIdandmessageArgs.- Parameters:
messageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@Nullable String[] itemPropertyPaths, @RequireNonnull String messageId, @Nullable PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withitemPropertyPaths,messageIdandmessageArgs.- Parameters:
itemPropertyPaths- the itemPropertyPaths related to the exceptionmessageId- message IDmessageArgs- message Arguments
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getItemPropertyPaths
Description copied from class:SingleAppExceptionProvides the location of an item at which this error occurred.Its data-type is an array because although standard jakarta validation (like
@NotEmptyhas only one property path, but BizLogicAppException which describes an error of some relation between multiple items may have multiple property paths.- Specified by:
getItemPropertyPathsin classSingleAppException- Returns:
- an array of propertyPath
-
getMessageId
-
getMessageArgs
-
cause
ProvidesThrowable.initCause(Throwable)with method chain.- Parameters:
th- throwable- Returns:
- BizLogicAppException for method chain
-