Exceptions

DTK encapsulates exceptions in the DRException class. The class offers the possibility to nest exceptions and assigning a severity. Valid severities are defined in the DRSeverity class.

Exception related classes are available in the devkit.exception package.

Internationalization

DRExceptions can be created with a DRTextCode as argument. DRTextCode allows the user to define messages in a property file, from which messages will be extracted using the Java ResourceBundle concept. Currently, DRTextCode only supports English locale. However, DRException defines constructors that take message strings directly. You may use these constructors to define error messages in other languages.

For an example on how a property file may be used, see the DTK examples directory.