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
    • WebAppWarningException

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

    • fields

      @Nonnull public WebAppWarningException fields(@Nullable jp.ecuacion.lib.core.exception.checked.AppExceptionFields fields)
      Overrides:
      fields in class jp.ecuacion.lib.core.exception.checked.AppWarningException
    • fields

      @Nonnull public jp.ecuacion.lib.core.exception.checked.AppExceptionFields fields()
      Overrides:
      fields 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