java.lang.Object
org.common.i18n.ContextUtility
org.common.i18n.ExceptionUtility
- public class ExceptionUtility
- extends ContextUtility
This is an extension of the ContextUtility class, it has a default base name
for the resource bundle, as defined in the public constant BASENAME. This
class will make sure the required resource bundle is loaded and messages can
be retrieved using context keys you should use this class for example as
follows:
throw new BusinessException(ExceptionUtility.getInstance("this.is.an.example.context.key"));
|
Constructor Summary |
private |
ExceptionUtility()
Constructor for the ExceptionUtility object |
|
Method Summary |
static ContextUtility |
getInstance()
Gets a ContextUtility instance using the BASENAME field, this is
equivalent to ContextUtility.getInstance( BASENAME ) |
| Methods inherited from class org.common.i18n.ContextUtility |
findMessage, getInstance, getInstance, getInstance, getInstance, getLocale, getMessage, getMessage, getMessage, getParentContext, invalidateCache, newInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASENAME
public static final java.lang.String BASENAME
- The BASENAME is 'exception'.
- See Also:
- Constant Field Values
ExceptionUtility
private ExceptionUtility()
- Constructor for the ExceptionUtility object
getInstance
public static ContextUtility getInstance()
- Gets a ContextUtility instance using the BASENAME field, this is
equivalent to
ContextUtility.getInstance( BASENAME )