Class ErrorMessageSetup
- java.lang.Object
-
- com.tngtech.configbuilder.configuration.ErrorMessageSetup
-
public class ErrorMessageSetup extends Object
Stores error messages for the ConfigBuilder in a Properties object.
-
-
Constructor Summary
Constructors Constructor Description ErrorMessageSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetErrorMessage(Class<?> exceptionClass, String... variables)StringgetErrorMessage(Throwable e, String... variables)voidinitialize(String baseName, com.tngtech.propertyloader.PropertyLoader propertyLoader)loads the default error messages for the system locale, then merges them with additional error messages loaded with the PropertyLoader
-
-
-
Method Detail
-
initialize
public void initialize(String baseName, com.tngtech.propertyloader.PropertyLoader propertyLoader)
loads the default error messages for the system locale, then merges them with additional error messages loaded with the PropertyLoader- Parameters:
baseName- the filename for additional error messagespropertyLoader- the PropertyLoader used to load additional error messages
-
-