5.271
Handling Exceptions
Plugin exceptions are currently in Beta. Interfaces may change significantly in future releases.
The com.adaptc.mws.plugins package contains several exceptions that may be used and in some cases, should be caught. All exceptions end with "Exception", as in PluginStartException.
There are several specific cases where Exceptions should or can be used:
- The reload method on the Plugin Control Service can throw the InvalidPluginConfigurationException to signify that the configuration contains errors.
- Various methods on the Plugin Control Service throw plugin exceptions which must be caught to diagnose errors when creating plugin types.
- Any exception (including the Exception class) can be thrown from a custom web service to display a 500 Internal Server Error to the client requesting the service with the given error message.
Related Topics