Module jp.ecuacion.lib.core
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
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 Summary
ConstructorsConstructorDescriptionRuntimeExceptionWithMessageId(String messageId) Constructs a new instance withmessageId.RuntimeExceptionWithMessageId(String messageId, String... messageArgs) Constructs a new instance withmessageIdandmessageArgs.RuntimeExceptionWithMessageId(Locale locale, String messageId) Constructs a new instance withlocaleandmessageId.RuntimeExceptionWithMessageId(Locale locale, String messageId, String... messageArgs) Constructs a new instance withlocale,messageIdandmessageArgs. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RuntimeExceptionWithMessageId
Constructs a new instance withmessageId.- Parameters:
messageId- message ID
-
RuntimeExceptionWithMessageId
Constructs a new instance withmessageIdandmessageArgs.- Parameters:
messageId- message IDmessageArgs- message Arguments
-
RuntimeExceptionWithMessageId
Constructs a new instance withlocaleandmessageId.- Parameters:
locale- localemessageId- message ID
-
RuntimeExceptionWithMessageId
public RuntimeExceptionWithMessageId(@Nonnull Locale locale, @Nonnull String messageId, @Nonnull String... messageArgs) Constructs a new instance withlocale,messageIdandmessageArgs.- Parameters:
locale- localemessageId- message IDmessageArgs- message Arguments
-
-
Method Details
-
getMessageId
Gets messageId.- Returns:
- message ID
-
getLocale
Gets locale.- Returns:
- locale
-
getMessageArgs
Gets messageArgs.- Returns:
- message Arguments
-