public class UserActivationValidationException extends Exception
ACTIVE.| Constructor and Description |
|---|
UserActivationValidationException(String message,
LocalizedMessage reasonMessage)
Create a new exception with details message and a localizable reason.
|
UserActivationValidationException(String message,
String messageKeySuffix,
Object... messageArguments)
Create a new exception with details message and a message key suffix for the reason.
|
UserActivationValidationException(String message,
Throwable cause,
LocalizedMessage reasonMessage)
Create a new exception with details message, cause and a localizable reason.
|
UserActivationValidationException(String message,
Throwable cause,
String messageKeySuffix,
Object... messageArguments)
Create a new exception with details message, a cause and a message key suffix for the reason.
|
| Modifier and Type | Method and Description |
|---|---|
LocalizedMessage |
getReason(String messageKeyPrefix,
Object... arguments)
Get the localizable reason.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UserActivationValidationException(String message, LocalizedMessage reasonMessage)
message - a message with detailsreasonMessage - a message describing the reason why the user could not be activatedpublic UserActivationValidationException(String message, String messageKeySuffix, Object... messageArguments)
message - a message with detailsmessageKeySuffix - suffix to be added to the message key that is passed to
getReason(String, Object...) to build the actual message keymessageArguments - the message arguments to be used when localizing the reasonpublic UserActivationValidationException(String message, Throwable cause, LocalizedMessage reasonMessage)
message - a message with detailscause - the cause of the exceptionreasonMessage - a message describing the reason why the user could not be activatedpublic UserActivationValidationException(String message, Throwable cause, String messageKeySuffix, Object... messageArguments)
message - a message with detailscause - the cause of the exceptionmessageKeySuffix - suffix to be added to the message key that is passed to
getReason(String, Object...) to build the actual message keymessageArguments - the message arguments to be used when localizing the reasonpublic LocalizedMessage getReason(String messageKeyPrefix, Object... arguments)
messageKeyPrefix - a string to prepend to the messageKeySuffix that was passed to the constructor to
build the actual message key for the reason. If this exception was constructed
with a LocalizedMessage this parameter is ignored.arguments - additional message arguments that will be prepended to those passed the
constructor. If this exception was constructed with a LocalizedMessage
this parameter is ignored.Copyright © 2019 Communote team. All rights reserved.