public class ErrorType extends Object implements Serializable
The ErrorKey is a unique identifier for the error that may also be used as a translation key The ErrorKey should always start with the "error." prefix.
The MessagePattern is a template containing the error message and placeholders for additional parameters.
The MessagePattern must be formated according to the MessageFormat
rules.
Constructor and Description |
---|
ErrorType(String errorKey,
String msgPattern)
Defines an error type.
|
Modifier and Type | Method and Description |
---|---|
String |
getKey()
Returns the error type key (might be used for internationalization).
|
String |
getMessagePattern()
Returns the message pattern.
|
int |
getNumParams()
Returns the number of parameters required for the message pattern.
|
public String getKey()
public String getMessagePattern()
public int getNumParams()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.