Class RuntimeExceptionWithMessageId

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jp.ecuacion.lib.core.exception.unchecked.RuntimeExceptionWithMessageId
All Implemented Interfaces:
Serializable

@Deprecated public class RuntimeExceptionWithMessageId extends RuntimeException
Deprecated.
Is used when you want to throw RuntimeException, but message is deifned in .properties.

When you want throw RuntimeException, you can use RuntimeSystemException. So it is not clear when to use RuntimeExceptionWithMessageId, but it is kept for the time being. May be deprecated in the future.

See Also:
  • Constructor Details

    • RuntimeExceptionWithMessageId

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

      public RuntimeExceptionWithMessageId(@Nonnull String messageId, @Nonnull PropertyFileUtil.Arg[] messageArgs)
      Deprecated.
      Constructs a new instance with messageId and messageArgs.
      Parameters:
      messageId - message ID
      messageArgs - message Arguments
  • Method Details

    • getMessage

      public String getMessage()
      Deprecated.
      Overrides:
      getMessage in class Throwable
    • getMessageId

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

      @Nonnull public PropertyFileUtil.Arg[] getMessageArgs()
      Deprecated.
      Gets messageArgs.
      Returns:
      message Arguments