com.virtuosotechnologies.lib.plugin
Class DuplicateAPIException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.virtuosotechnologies.lib.plugin.PluginException
              extended bycom.virtuosotechnologies.lib.plugin.DuplicateAPIException
All Implemented Interfaces:
Serializable

public class DuplicateAPIException
extends PluginException

Tried to register a duplicate API version.

See Also:
Serialized Form

Constructor Summary
DuplicateAPIException(String apiName, APIVersion apiVersion, PluginID pluginID)
          Constructor.
 
Method Summary
 String getAPIName()
          Get the API name
 APIVersion getAPIVersion()
          Get the API version
 PluginID getPluginID()
          Get the plugin id
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateAPIException

public DuplicateAPIException(String apiName,
                             APIVersion apiVersion,
                             PluginID pluginID)
Constructor. This automatically creates a message string.

Parameters:
apiName - name of API
apiVersion - version of API
pluginID - id of the plugin that tried to provide the duplicate API, or null if it wasn't a plugin.
Method Detail

getAPIName

public String getAPIName()
Get the API name

Returns:
name of API as a String

getAPIVersion

public APIVersion getAPIVersion()
Get the API version

Returns:
version of API

getPluginID

public PluginID getPluginID()
Get the plugin id

Returns:
id of plugin as a PluginID