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 occured.Gets messageArgs.Gets messageId.itemPropertyPaths(String... itemPropertyPaths) Sets propertyPath and returns self for method chain.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 occured.- Specified by:
getItemPropertyPathsin classSingleAppException- Returns:
- an array of fpropertyPath
-
itemPropertyPaths
Sets propertyPath and returns self for method chain.- Parameters:
itemPropertyPaths- propertyPaths- Returns:
- BizLogicAppException
-
getMessageId
-
getMessageArgs
-
cause
ProvidesThrowable.initCause(Throwable)with method chain.- Parameters:
th- throwable- Returns:
- BizLogicAppException for method chain
-