Class AppWarningException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppWarningException
All Implemented Interfaces:
Serializable

public class AppWarningException extends Exception
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 Details

    • messageId

      protected String messageId
      message ID.
    • messageArgs

      protected String[] messageArgs
      message Arguments.
    • itemPropertyPaths

      protected String[] itemPropertyPaths
      propertyPaths.
  • Constructor Details

    • AppWarningException

      public AppWarningException(@RequireNonnull String messageId, @RequireNonnull String... messageArgs)
      Constructs a new instance with messageId and messageArgs.
      Parameters:
      messageId - message ID
      messageArgs - message Arguments
    • AppWarningException

      public AppWarningException(@RequireNonnull String[] itemPropertyPaths, @RequireNonnull String messageId, @RequireNonnull String... messageArgs)
      Constructs a new instance with itemPropertyPaths, messageId and messageArgs.
      Parameters:
      messageId - message ID
      messageArgs - message Arguments
  • Method Details

    • getMessageId

      @Nonnull public String getMessageId()
      Returns messageId.
      Returns:
      message ID
    • getMessageArgs

      @Nonnull public String[] getMessageArgs()
      Returns messageArgs.
      Returns:
      message arguments
    • getItemPropertyPaths

      @Nonnull public String[] getItemPropertyPaths()
      Returns itemPropertyPaths.
      Returns:
      itemPropertyPaths
    • itemPropertyPaths

      @Nonnull public AppWarningException itemPropertyPaths(@RequireNonnull String[] itemPropertyPaths)
      Sets itemPropertyPaths and return this instance to realize the method chain.
      Returns:
      AppWarningException