public java.lang.String getPropertyValue(java.lang.String code,
java.util.Locale locale,
java.lang.Object exception)
Parameters:
code - the error code defined in Messages.java
locale - the local to find right resource bundle
exception - used to find package name, then identify the resource
file name e.g. oralce.rules.sdk.exception.DataModelException
indicates the message file is
oralce.rules.sdk.exception.Messages_locale.java.
By doing this users can have exceptions in their own
packages, however, have to provide their own Messages.java
Returns:
the property value
getResource
public java.util.ResourceBundle getResource(java.lang.String fileLocation,
java.util.Locale locale)
throws java.util.MissingResourceException