org.dspace.core
Class PluginInstantiationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.dspace.core.PluginInstantiationException
All Implemented Interfaces:
Serializable

public class PluginInstantiationException
extends RuntimeException

This exception indicates a fatal error when instantiating a plugin class.

It should only be thrown when something unexpected happens in the course of instantiating a plugin, e.g. an access error, class not found, etc. Simply not finding a class in the configuration is not an exception.

This is a RuntimeException so it doesn't have to be declared, and can be passed all the way up to a generalized fatal exception handler.

Version:
$Revision: 3762 $
Author:
Larry Stone
See Also:
PluginManager, Serialized Form

Constructor Summary
PluginInstantiationException(String msg)
           
PluginInstantiationException(String msg, Throwable cause)
           
PluginInstantiationException(Throwable cause)
           
 
Method Summary
 
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

PluginInstantiationException

public PluginInstantiationException(String msg)
Parameters:
msg - Error message text.

PluginInstantiationException

public PluginInstantiationException(String msg,
                                    Throwable cause)
Parameters:
msg - Error message text.

PluginInstantiationException

public PluginInstantiationException(Throwable cause)


Copyright © 2010 DuraSpace. All Rights Reserved.