java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppWarningException
jp.ecuacion.splib.web.exception.WebAppWarningException
- All Implemented Interfaces:
Serializable
public class WebAppWarningException
extends jp.ecuacion.lib.core.exception.checked.AppWarningException
Adds buttonIdToPressOnConfirm feature on to AppWarningException.
After the warning message is confirmed and "OK" button is pressed,
usually the submit is executed by javascript code of form.submit().
But sometimes you want to execute extra javascript codes or something.
In that case, you set buttonIdToPressOnConfirm
to designate the submit button to press instead of just being submitted by javascript.
- See Also:
-
Field Summary
Fields inherited from class jp.ecuacion.lib.core.exception.checked.AppWarningException
itemIds, locale, messageArgs, messageId -
Constructor Summary
ConstructorsConstructorDescriptionWebAppWarningException(String messageId, String... messageArgs) Construct a new instance.WebAppWarningException(Locale locale, String messageId, String... messageArgs) Construct a new instance with thelocale. -
Method Summary
Modifier and TypeMethodDescriptionReturns buttonIdToPressOnConfirm.buttonIdToPressOnConfirm(String buttonIdToPressOnConfirm) Sets buttonIdToPressOnConfirm.jp.ecuacion.lib.core.exception.checked.AppExceptionItemIdsitemIds()itemIds(jp.ecuacion.lib.core.exception.checked.AppExceptionItemIds fields) Methods inherited from class jp.ecuacion.lib.core.exception.checked.AppWarningException
getLocale, getMessageArgs, getMessageIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WebAppWarningException
Construct a new instance.- Parameters:
messageId- messageIdmessageArgs- messageArgs
-
WebAppWarningException
public WebAppWarningException(@RequireNonnull Locale locale, @Nonnull String messageId, @Nonnull String... messageArgs) Construct a new instance with thelocale.- Parameters:
locale- localemessageId- messageIdmessageArgs- messageArgs
-
-
Method Details
-
itemIds
@Nonnull public WebAppWarningException itemIds(@Nullable jp.ecuacion.lib.core.exception.checked.AppExceptionItemIds fields) - Overrides:
itemIdsin classjp.ecuacion.lib.core.exception.checked.AppWarningException
-
itemIds
@Nonnull public jp.ecuacion.lib.core.exception.checked.AppExceptionItemIds itemIds()- Overrides:
itemIdsin classjp.ecuacion.lib.core.exception.checked.AppWarningException
-
buttonIdToPressOnConfirm
@Nonnull public WebAppWarningException buttonIdToPressOnConfirm(@Nullable String buttonIdToPressOnConfirm) Sets buttonIdToPressOnConfirm.- Parameters:
buttonIdToPressOnConfirm- buttonIdToPressOnConfirm- Returns:
- WebAppWarningException
-
buttonIdToPressOnConfirm
Returns buttonIdToPressOnConfirm.- Returns:
- buttonIdToPressOnConfirm
-