Class AppWarningException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppWarningException
- All Implemented Interfaces:
Serializable
Provides an exception that indicates a warning.
This is used in web apps. When some business logic throws this warning exception, the app shows the warning popup window on screen and proceed when a user presses "OK".
It is not a child of AppException
because AppException means an error occurred in a business logic
but AppWarningException doesn't mean it.
Localized message is needed for this,
so the class is the same constructure as BizLogicAppException.
MultipleAppException for warning does not seem to be needed so it does not exist.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAppWarningException(String[] itemPropertyPaths, String messageId, String... messageArgs) Constructs a new instance withitemPropertyPaths,messageIdandmessageArgs.AppWarningException(String messageId, String... messageArgs) Constructs a new instance withmessageIdandmessageArgs. -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns itemPropertyPaths.String[]Returns messageArgs.Returns messageId.itemPropertyPaths(String[] itemPropertyPaths) Sets itemPropertyPaths and return this instance to realize the method chain.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
messageId
message ID. -
messageArgs
message Arguments. -
itemPropertyPaths
propertyPaths.
-
-
Constructor Details
-
AppWarningException
Constructs a new instance withmessageIdandmessageArgs.- Parameters:
messageId- message IDmessageArgs- message Arguments
-
AppWarningException
public AppWarningException(@RequireNonnull String[] itemPropertyPaths, @RequireNonnull String messageId, @RequireNonnull String... messageArgs) Constructs a new instance withitemPropertyPaths,messageIdandmessageArgs.- Parameters:
messageId- message IDmessageArgs- message Arguments
-
-
Method Details
-
getMessageId
-
getMessageArgs
-
getItemPropertyPaths
Returns itemPropertyPaths.- Returns:
- itemPropertyPaths
-
itemPropertyPaths
Sets itemPropertyPaths and return this instance to realize the method chain.- Returns:
- AppWarningException
-