Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.api
Class TuscanyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.tuscany.api.TuscanyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidServiceContractException, LoaderException, RMIHostException, WireException

public abstract class TuscanyException
extends Exception

The root checked exception for the Tuscany runtime.

Version:
$Rev: 432109 $ $Date: 2006-08-16 19:01:17 -0700 (Wed, 16 Aug 2006) $
See Also:
Serialized Form

Constructor Summary
TuscanyException()
          Override constructor from Exception.
TuscanyException(String message)
          Override constructor from Exception.
TuscanyException(String message, Throwable cause)
          Override constructor from Exception.
TuscanyException(Throwable cause)
          Override constructor from Exception.
 
Method Summary
 void addContextName(String name)
          Pushes a context name where an error occured onto the call stack.
 String getIdentifier()
          Returns a string representing additional error information referred to in the error message.
 String getMessage()
           
 List<String> returnContextNames()
          Returns a collection of names representing the context call stack where the error occured.
 void setIdentifier(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

TuscanyException

public TuscanyException()
Override constructor from Exception.

See Also:
Exception

TuscanyException

public TuscanyException(String message)
Override constructor from Exception.

Parameters:
message - passed to Exception
See Also:
Exception

TuscanyException

public TuscanyException(String message,
                        Throwable cause)
Override constructor from Exception.

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

TuscanyException

public TuscanyException(Throwable cause)
Override constructor from Exception.

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

returnContextNames

public List<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(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 String getIdentifier()
Returns a string representing additional error information referred to in the error message.

Returns:
additional error information

setIdentifier

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

Parameters:
identifier - additional error information

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

Apache Tuscany SCA Kernel Sub-Project

-