org.sape.carbon.core.config.node
Class NodeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--org.sape.carbon.core.exception.BaseException
                    |
                    +--org.sape.carbon.core.config.ConfigurationException
                          |
                          +--org.sape.carbon.core.config.node.NodeException
All Implemented Interfaces:
Exceptionable, Serializable
Direct Known Subclasses:
NodeCreationException, NodeIOException, NodeNotFoundException, NodeRemovalException

public abstract class NodeException
extends ConfigurationException

Base exception for all exceptions in the node package. Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.11 $($Author: dvoet $ / $Date: 2003/05/05 21:21:18 $)
Author:
Douglas Voet, February 2002
See Also:
Serialized Form

Field Summary
protected  String nodeName
          The name of the node on which the exception occured.
 
Fields inherited from class org.sape.carbon.core.exception.BaseException
delegatedException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NodeException(Class sourceClass, String nodeName, String message)
          Constructs the base NodeException.
NodeException(Class sourceClass, String nodeName, String message, Throwable previousException)
          Constructs the base NodeException.
 
Method Summary
 String getNodeName()
          Retrieves the name of the node on which the exception occurred.
 
Methods inherited from class org.sape.carbon.core.config.ConfigurationException
getSeverity
 
Methods inherited from class org.sape.carbon.core.exception.BaseException
getCause, getExceptionSource, getMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeName

protected String nodeName
The name of the node on which the exception occured.

Constructor Detail

NodeException

public NodeException(Class sourceClass,
                     String nodeName,
                     String message,
                     Throwable previousException)
Constructs the base NodeException.

Parameters:
sourceClass - the class in which this exception was caused.
nodeName - the name of the configuration node to which this failure is related.
message - the message describing the failure and how to fix it.
previousException - the exception that may have caused this failure.

NodeException

public NodeException(Class sourceClass,
                     String nodeName,
                     String message)
Constructs the base NodeException.

Parameters:
sourceClass - the class in which this exception was caused.
nodeName - the name of the configuration node to which this failure is related.
message - the message describing the failure and how to fix it.
Method Detail

getNodeName

public String getNodeName()
Retrieves the name of the node on which the exception occurred.

Returns:
the name of the node on which the exception occured.
Since:
carbon 2.0


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.