com.bramosystems.oss.player.core.client
Class PluginVersionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.bramosystems.oss.player.core.client.PluginVersionException
All Implemented Interfaces:
Serializable

public class PluginVersionException
extends Exception

Thrown to indicate that a required plugin version cannot be found on the client's browser.

On catching this exception, a message might be displayed to the user describing how to download the appropriate plugin version.

Author:
Sikiru Braheem
See Also:
PluginNotFoundException, Serialized Form

Constructor Summary
PluginVersionException(Plugin plugin, String requiredVersion, String versionFound)
          Constructs a PluginVersionException specifing the related plugin, the required version and the version found on the clients browser.
PluginVersionException(String requiredVersion, String versionFound)
          Constructs a PluginVersionException specifing the required version and the version found on the clients browser.
 
Method Summary
 Plugin getPlugin()
          Returns the required plugin
 String getRequiredVersion()
          Returns the required version of the plugin
 String getVersionFound()
          Returns the plugin version found.
 
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

PluginVersionException

public PluginVersionException(String requiredVersion,
                              String versionFound)
Constructs a PluginVersionException specifing the required version and the version found on the clients browser.

The requiredVersion and versionFound parameters are of the format major.minor.revision

Parameters:
requiredVersion - the required plugin version
versionFound - the plugin version found

PluginVersionException

public PluginVersionException(Plugin plugin,
                              String requiredVersion,
                              String versionFound)
Constructs a PluginVersionException specifing the related plugin, the required version and the version found on the clients browser.

The requiredVersion and versionFound parameters are of the format major.minor.revision

Parameters:
plugin - the required plugin
requiredVersion - the required plugin version
versionFound - the plugin version found
Since:
1.1
Method Detail

getRequiredVersion

public String getRequiredVersion()
Returns the required version of the plugin

Returns:
required plugin version

getVersionFound

public String getVersionFound()
Returns the plugin version found.

Returns:
plugin version found.

getPlugin

public Plugin getPlugin()
Returns the required plugin

Returns:
the required plugin
Since:
1.1


Copyright © 2009-2011. All Rights Reserved.