Interface ExceptionMessageSet
-
public interface ExceptionMessageSetExceptionMessageSet is the interface implemented by an enum that contains the collection of message definitions for a component's exceptions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExceptionMessageDefinitiongetMessageDefinition()Retrieve a message definition object for an exception.ExceptionMessageDefinitiongetMessageDefinition(String... params)Retrieve a message definition object for an exception.
-
-
-
Method Detail
-
getMessageDefinition
ExceptionMessageDefinition getMessageDefinition()
Retrieve a message definition object for an exception. This method is used when there are no message inserts.- Returns:
- message definition object.
-
getMessageDefinition
ExceptionMessageDefinition getMessageDefinition(String... params)
Retrieve a message definition object for an exception. This method is used when there are values to be inserted into the message.- Parameters:
params- array of parameters (all strings). They are inserted into the message according to the numbering in the message text.- Returns:
- message definition object.
-
-