Package io.vertigo.core.lang
Class VUserException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.vertigo.core.lang.VUserException
- All Implemented Interfaces:
Serializable
Base exception for user-facing errors in Vertigo.
Features:
- Localized message support
- Parameter substitution
- Message key resolution
- Default message fallback
Used for errors that should be displayed to end users.
- Author:
- fconstantin, pchretien
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVUserException(LocaleMessageKey key, Serializable... params) Constructor.VUserException(LocaleMessageText messageText) Constructor.VUserException(String defaultMsg, Serializable... params) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfinal LocaleMessageTextReturns the externalized error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VUserException
Constructor.- Parameters:
messageText- Exception message
-
VUserException
Constructor.- Parameters:
defaultMsg- The default msg (required)params- List of params (optional)
-
VUserException
Constructor.- Parameters:
key- The msg key (required)params- List of params (optional)
-
-
Method Details
-
getMessageText
Returns the externalized error message.- Returns:
- The localized message text
-