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:
  • Constructor Details

    • WebAppWarningException

      public WebAppWarningException(@RequireNonnull String messageId, @Nonnull String... messageArgs)
      Construct a new instance.
      Parameters:
      messageId - messageId
      messageArgs - messageArgs
  • Method Details

    • itemPropertyPaths

      @Nonnull public WebAppWarningException itemPropertyPaths(@Nullable String[] fields)
      Overrides:
      itemPropertyPaths in class jp.ecuacion.lib.core.exception.checked.AppWarningException
    • getItemPropertyPaths

      @Nonnull public String[] getItemPropertyPaths()
      Overrides:
      getItemPropertyPaths in class jp.ecuacion.lib.core.exception.checked.AppWarningException
    • buttonIdToPressOnConfirm

      @Nonnull public WebAppWarningException buttonIdToPressOnConfirm(@Nullable String buttonIdToPressOnConfirm)
      Sets buttonIdToPressOnConfirm.
      Parameters:
      buttonIdToPressOnConfirm - buttonIdToPressOnConfirm
      Returns:
      WebAppWarningException
    • buttonIdToPressOnConfirm

      @Nullable public String buttonIdToPressOnConfirm()
      Returns buttonIdToPressOnConfirm.
      Returns:
      buttonIdToPressOnConfirm