net.dpml.component
Class ControlException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.dpml.component.ControlException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ComponentNotFoundException, ControllerException, ControllerNotFoundException, DelegationException, LifecycleException, ModelException, PartNotFoundException, ServiceNotFoundException

public class ControlException
extends IOException

General exception thrown by a control.

Version:
1.2.0
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
ControlException(URI uri, String message)
          Creation of a new ControlException.
ControlException(URI uri, String message, Throwable cause)
          Creation of a new ContextException.
 
Method Summary
 URI getControllerURI()
          Return the controller uri.
 Throwable getRootCause()
          Iterates through exceptiion to locate the root causal exception.
 
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

ControlException

public ControlException(URI uri,
                        String message)
Creation of a new ControlException.

Parameters:
uri - the part controller uri
message - the exception message

ControlException

public ControlException(URI uri,
                        String message,
                        Throwable cause)
Creation of a new ContextException.

Parameters:
uri - the part controller uri
message - the exception message
cause - the causal exception
Method Detail

getControllerURI

public URI getControllerURI()
Return the controller uri.

Returns:
the uri identifying the controller that raised the exception

getRootCause

public Throwable getRootCause()
Iterates through exceptiion to locate the root causal exception.

Returns:
the root exception (possibly null)