uk.ac.starlink.hdx
Class PluginException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by uk.ac.starlink.hdx.PluginException
All Implemented Interfaces:
Serializable

public class PluginException
extends RuntimeException

Unchecked exception to indicate that a plugin has violated its contract.

This is generally thrown by code in the Hdx package, to indicate that one of the classes extending the system has violated its contract. However, it may also be thrown by client code, implementing such extensions, if it wishes to indicate a `this-can't-happen' error during its initialisation.

Version:
$Id$
Author:
Norman Gray
See Also:
Serialized Form

Constructor Summary
PluginException(Exception e)
          Construct an HdxException from another Exception.
PluginException(String s)
           
 
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

PluginException

public PluginException(String s)

PluginException

public PluginException(Exception e)
Construct an HdxException from another Exception. Retains the original message and stack trace.

Parameters:
e - the exception to be recast as an HdxException.


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.