Class ErrorMessageSetup


  • public class ErrorMessageSetup
    extends Object
    Stores error messages for the ConfigBuilder in a Properties object.
    • Constructor Detail

      • ErrorMessageSetup

        public ErrorMessageSetup()
    • 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 messages
        propertyLoader - the PropertyLoader used to load additional error messages
      • getErrorMessage

        public String getErrorMessage​(Class<?> exceptionClass,
                                      String... variables)