public class NodeException extends Exception
Constructor and Description |
---|
NodeException()
Create an instance of the exception
|
NodeException(String message)
Create an instance of the exception with a message
|
NodeException(String message,
String messageKey)
Create an instance of the exception with a message and a localized message.
|
NodeException(String message,
String messageKey,
List<String> parameters)
Create an instance of the exception with a message and a localized message.
|
NodeException(String message,
String messageKey,
String parameter)
Create an instance of the exception with a message and a localized message.
|
NodeException(String message,
Throwable cause)
Create an instance of the exception with a message and a cause
|
NodeException(Throwable cause)
Create an instance of the exception with a cause
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedMessage()
Returns the localized message from the given message key.
|
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NodeException()
public NodeException(String message)
message
- message of the exceptionpublic NodeException(String message, Throwable cause)
message
- message of the exceptioncause
- cause of the exceptionpublic NodeException(Throwable cause)
cause
- cause of the exceptionpublic NodeException(String message, String messageKey)
message
- A plain text message that contains information about the error.localizedMessageKey
- A message key that is used to construct a CNI18nString for the localized message.public NodeException(String message, String messageKey, List<String> parameters)
message
- A plain text message that contains information about the error.localizedMessageKey
- A message key that is used to construct a CNI18nString for the localized message.parameters
- List of parameters for the localized message.public NodeException(String message, String messageKey, String parameter)
message
- A plain text message that contains information about the error.localizedMessageKey
- A message key that is used to construct a CNI18nString for the localized message.parameter
- Single parameter for the localized message. If you need more than one parameter use InsufficientPrivilegesException.InsufficientPrivilegesException(String, String, List)
.public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
Copyright © 2016 Gentics Software GmbH. All Rights Reserved.