4.0

Table Of Contents
PluginOperationException Class
The PluginOperationException class handles errors encountered during a plug-in operation.
public class PluginOperationException
extends java.lang.RuntimeException
implements java.io.Serializable
The PluginOperationException class inherits the following methods from class java.lang.Throwable:
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace,
printStackTrace, printStackTrace, setStackTrace, toString
Constructor
PluginOperationException(java.lang.String message)
ConfigurationError.Severity Enumeration
The ConfigurationError class uses the ConfigurationError.Severity enumeration to set the level of severity
of configuration errors.
public static enum ConfigurationError.Severity
extends java.lang.Enum<ConfigurationError.Severity>
implements java.io.Serializable
The ConfigurationError.Severity enumeration defines the following constant values for error levels:
n
public static final ConfigurationError.Severity Info
n
public static final ConfigurationError.Severity Warning
n
public static final ConfigurationError.Severity Error
The ConfigurationError.Severity enumeration defines the following methods.
Method Returns Description
values() public static
ConfigurationError.Severity[]
Returns an array containing the constants of this
enumeration type, in the order that the plug-in
declares them. You can use this method to iterate
through the constants as follows:
for (
ConfigurationError.Severity c :
ConfigurationError.Severity.
values())
System.out.println(c);
valueOf(java.lang.String
name)
java.lang.String name
Returns the constant value of an enumeration
with the specified name. The string must match
an identifier that you use to declare an
enumeration constant in this type. Extraneous
whitespace characters are not permitted.
The name parameter is the name of the
enumeration constant to return.
public int getValue() int
Returns the value of the error.
The ConfigurationError.Severity enumeration inherits the following methods from class java.lang.Enum:
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Chapter 7 Developing Plug-Ins
VMware, Inc. 227