Class RedirectException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jp.ecuacion.splib.web.exception.RedirectException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RedirectToHomePageException

public class RedirectException extends RuntimeException
Redirects to specified page.
See Also:
  • Constructor Details

    • RedirectException

      public RedirectException(String redirectPath)
      Constructs a new instance.
      Parameters:
      redirectPath - redirectPath like "/account/instancePowerStatus/searchList/page".
    • RedirectException

      public RedirectException(String redirectPath, String messageId, String... messageArgs)
      Constructs a new instance.
      Parameters:
      redirectPath - redirectPath like "/account/instancePowerStatus/searchList/page".
      messageId - messageId
      messageArgs - messageArgs
    • RedirectException

      public RedirectException(String redirectPath, org.slf4j.event.Level logLevel, String logString)
      Constructs a new instance.
      Parameters:
      redirectPath - redirectPath like "/account/instancePowerStatus/searchList/page".
      logLevel - logLevel
      logString - logString
    • RedirectException

      public RedirectException(String redirectPath, org.slf4j.event.Level logLevel, String logString, String messageId, String... messageArgs)
      Constructs a new instance.
      Parameters:
      redirectPath - redirectPath like "/account/instancePowerStatus/searchList/page".
      logLevel - logLevel
      logString - logString
      messageId - messageId
      messageArgs - messageArgs
    • RedirectException

      public RedirectException(String redirectPath, org.slf4j.event.Level logLevel, String messageId, String[] messageArgs)
      Constructs a new instance.

      messageId and messageArgs are used both for message shown on the page and log message.
      English locale is always used for log messages.

      Since hard to distinguish other constructors, messageArgs is not String..., but String[].

      Parameters:
      redirectPath - redirectPath like "/account/instancePowerStatus/searchList/page".
      logLevel - logLevel
      messageId - messageId
      messageArgs - messageArgs
  • Method Details

    • getRedirectPath

      public String getRedirectPath()
    • getMessageId

      public String getMessageId()
    • getMessageArgs

      public String[] getMessageArgs()
    • getLogLevel

      public org.slf4j.event.Level getLogLevel()
    • getLogString

      public String getLogString()