org.oddjob.structural
Class OddjobChildException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.oddjob.OddjobException
                  extended by org.oddjob.structural.OddjobChildException
All Implemented Interfaces:
Serializable

public class OddjobChildException
extends OddjobException

An exception which can be thrown by a Strutured node which is cascading a child exception upwards.

This has no cause as this 'cause' as this causes unnecessary stack trace in logs. The child exception is available via the getChildException method if required

See Also:
Serialized Form
Author:
Rob Gordon

Constructor Summary
OddjobChildException(Throwable childException, String childName)
          Constructs a new oddjob excpetion with the given message an cause.
 
Method Summary
 Throwable getChildException()
           
 String getChildName()
           
 
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

OddjobChildException

public OddjobChildException(Throwable childException,
                            String childName)
Constructs a new oddjob excpetion with the given message an cause.

Parameters:
childException - The child Exception.
childName - The childs name.
Method Detail

getChildException

public Throwable getChildException()

getChildName

public String getChildName()