Class WebAppWarningException
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
itemPropertyPaths, messageArgs, messageId -
Constructor Summary
ConstructorsConstructorDescriptionWebAppWarningException(String messageId, String... messageArgs) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns buttonIdToPressOnConfirm.buttonIdToPressOnConfirm(String buttonIdToPressOnConfirm) Sets buttonIdToPressOnConfirm.String[]itemPropertyPaths(String[] fields) Methods inherited from class jp.ecuacion.lib.core.exception.checked.AppWarningException
getMessageArgs, getMessageIdMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WebAppWarningException
-
-
Method Details
-
itemPropertyPaths
- Overrides:
itemPropertyPathsin classjp.ecuacion.lib.core.exception.checked.AppWarningException
-
getItemPropertyPaths
- Overrides:
getItemPropertyPathsin 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
-