Tuscany Common

org.apache.tuscany.common
Class TuscanyRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.tuscany.common.TuscanyRuntimeException
All Implemented Interfaces:
java.io.Serializable

public abstract class TuscanyRuntimeException
extends java.lang.RuntimeException

The root unchecked exception for the Tuscany runtime.

Version:
$Rev: 368822 $ $Date: 2006-01-13 10:54:38 -0800 (Fri, 13 Jan 2006) $
See Also:
Serialized Form

Constructor Summary
TuscanyRuntimeException()
          Override constructor from RuntimeException.
TuscanyRuntimeException(java.lang.String message)
          Override constructor from RuntimeException.
TuscanyRuntimeException(java.lang.String message, java.lang.Throwable cause)
          Override constructor from RuntimeException.
TuscanyRuntimeException(java.lang.Throwable cause)
          Override constructor from RuntimeException.
 
Method Summary
 void addContextName(java.lang.String name)
          Pushes a context name where an error occured onto the call stack.
 java.lang.String getIdentifier()
          Returns a string representing additional error information referred to in the error message.
 java.lang.String getMessage()
           
 java.util.List<java.lang.String> returnContextNames()
          Returns a collection of names representing the context call stack where the error occured.
 void setIdentifier(java.lang.String identifier)
          Sets an additional error information referred to in the error message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

TuscanyRuntimeException

public TuscanyRuntimeException()
Override constructor from RuntimeException.

See Also:
RuntimeException

TuscanyRuntimeException

public TuscanyRuntimeException(java.lang.String message)
Override constructor from RuntimeException.

Parameters:
message - passed to RuntimeException
See Also:
RuntimeException

TuscanyRuntimeException

public TuscanyRuntimeException(java.lang.String message,
                               java.lang.Throwable cause)
Override constructor from RuntimeException.

Parameters:
message - passed to RuntimeException
cause - passed to RuntimeException
See Also:
RuntimeException

TuscanyRuntimeException

public TuscanyRuntimeException(java.lang.Throwable cause)
Override constructor from RuntimeException.

Parameters:
cause - passed to RuntimeException
See Also:
RuntimeException
Method Detail

returnContextNames

public java.util.List<java.lang.String> returnContextNames()
Returns a collection of names representing the context call stack where the error occured. The top of the stack is the first element in the collection.

Returns:
a collection of names representing the context call stack

addContextName

public void addContextName(java.lang.String name)
Pushes a context name where an error occured onto the call stack.

Parameters:
name - the name of a context to push on the stack

getIdentifier

public java.lang.String getIdentifier()
Returns a string representing additional error information referred to in the error message.

Returns:
additional error information

setIdentifier

public void setIdentifier(java.lang.String identifier)
Sets an additional error information referred to in the error message.

Parameters:
identifier - additional error information

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

Tuscany Common

-