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(Locale locale, String messageId, String... messageArgs) Constructs a new instance withlocale,messageIdandmessageArgs.BizLogicAppException(Locale locale, AppExceptionFields fields, String messageId, String... messageArgs) Constructs a new instance withlocale,fields,messageIdandmessageArgs.BizLogicAppException(AppExceptionFields fields, String messageId, String... messageArgs) Constructs a new instance withfields,messageIdandmessageArgs. -
Method Summary
Modifier and TypeMethodDescriptionGets fields.Gets locale.String[]Gets messageArgs.Gets messageId.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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(@Nonnull AppExceptionFields fields, @Nonnull String messageId, @Nonnull String... messageArgs) Constructs a new instance withfields,messageIdandmessageArgs.- Parameters:
fields- the fields related to the execeptionmessageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@Nonnull Locale locale, @Nonnull String messageId, @Nonnull String... messageArgs) Constructs a new instance withlocale,messageIdandmessageArgs.- Parameters:
locale- localemessageId- message IDmessageArgs- message Arguments
-
BizLogicAppException
public BizLogicAppException(@Nonnull Locale locale, @Nonnull AppExceptionFields fields, @Nonnull String messageId, @Nonnull String... messageArgs) Constructs a new instance withlocale,fields,messageIdandmessageArgs.- Parameters:
locale- localefields- the fields related to the execeptionmessageId- message IDmessageArgs- message Arguments
-
-
Method Details
-
getLocale
Gets locale.- Returns:
- locale
-
getErrorFields
Gets fields.- Returns:
- fields
-
getMessageId
Gets messageId.- Returns:
- messageId
-
getMessageArgs
Gets messageArgs.- Returns:
- messageArgs
-