• Post Reply Bookmark Topic Watch Topic
  • New Topic

ClassValidator class question!

 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ClassValidator appValidator = new ClassValidator( App.class , ResourceBundle.getBundle("testClassFolder.errorMessage", Locale.CANADA) );

in the errorMessage.properties file i have:
# This is the default errorMessage.properties file

code = Duplicated table code found


now i want to get the error message of "Duplicated table code found"

when i create/update the table information

but i do not know how to get the message from the errorMessage.properties file

thank you in advance
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!