Java Code Examples for javax.management.InvalidAttributeValueException#getMessage()
The following examples show how to use
javax.management.InvalidAttributeValueException#getMessage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HarvesterHeritrix.java From webcurator with Apache License 2.0 | 6 votes |
/** * @return */ private XMLSettingsHandler getSettingsHandler() { XMLSettingsHandler settings = job.getSettingsHandler(); if (settings == null || settings.getOrder() == null) { File profile = new File(job.getDirectory() + File.separator + PROFILE_NAME); try { settings = new XMLSettingsHandler(profile); settings.initialize(); } catch (InvalidAttributeValueException e) { if (log.isErrorEnabled()) { log.error("Failed to get settings for job " + name + ": " + e.getMessage(), e); } throw new HarvesterException("Failed to get settings for job " + name + ": " + e.getMessage(), e); } } return settings; }