Sun WBEM SDK Developer's Guide

Parts of Error Messages

Error messages are made up of the following parts:

Error Message Example

For example, the MOF Compiler may return the following error message:

REF_REQUIRED = Association class CIM_Docked needs
 at least two refs. Error in line 12.

For Developers: Error Message Templates

WBEM provides exception templates for all possible error messages in the ErrorMessages_en.properties file of the APIs. In an exception template that requires parameters, the first parameter is represented as {0} and the second parameter is represented as {1}.

The following exception template is used in the previous example:

REF_REQUIRED = Association class {0} needs at least two refs.