Module jp.ecuacion.lib.core
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
Is used for buziness logic exceptions.
Messages are designated by messageId, which is defined in messages[_xxx].properties.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBizLogicAppException(String messageId, String... messageArgs) Constructs a new instance withmessageIdandmessageArgs.BizLogicAppException(String messageId, PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withitemIds,messageIdandmessageArgs.BizLogicAppException(AppExceptionItemIds itemIds, String messageId, String... messageArgs) Constructs a new instance withlocale,itemIds,messageIdandmessageArgs.BizLogicAppException(AppExceptionItemIds itemIds, String messageId, PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withitemIds,messageIdandmessageArgs. -
Method Summary
Modifier and TypeMethodDescriptionProvidesThrowable.initCause(Throwable)with method chain.Gets itemIds.Gets messageArgs.Gets messageId.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BizLogicAppException
Constructs a new instance withmessageIdandmessageArgs.- Parameters:
messageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@Nullable AppExceptionItemIds itemIds, @Nonnull String messageId, @Nonnull String... messageArgs) Constructs a new instance withlocale,itemIds,messageIdandmessageArgs.- Parameters:
itemIds- the itemIds related to the exceptionmessageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@RequireNonnull String messageId, @RequireNonnull PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withitemIds,messageIdandmessageArgs.- Parameters:
messageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@Nullable AppExceptionItemIds itemIds, @RequireNonnull String messageId, @RequireNonnull PropertyFileUtil.Arg[] messageArgs) Constructs a new instance withitemIds,messageIdandmessageArgs.- Parameters:
itemIds- the itemIds related to the execeptionmessageId- message IDmessageArgs- message Arguments
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getItemIds
Gets itemIds.- Returns:
- itemIds
-
getMessageId
Gets messageId.- Returns:
- messageId
-
getMessageArgs
Gets messageArgs.- Returns:
- messageArgs
-
cause
ProvidesThrowable.initCause(Throwable)with method chain.- Parameters:
th- throwable- Returns:
- BizLogicAppException for method chain
-