org.sape.carbon.core.exception
Interface Exceptionable

All Known Implementing Classes:
BaseException, BaseRuntimeException

public interface Exceptionable

This is the standardized interface for throwables within the Carbon Component System. This interface specifically adds for the tracking of the Severity and Source of an exception in order to classify it within the logging system and the Cause or previous exception for supporting the pattern of Exception Levelization.

The Exception Levelization pattern is designe to to create a common and consistent interface for a particular service as well as complete encapsulation of the implementation of that service.

Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.8 $($Author: dvoet $ / $Date: 2003/05/05 21:21:21 $)
Author:
Greg Hinkle, January 2002

Method Summary
 Throwable getCause()
          Retrieves the previous exception.
 Class getExceptionSource()
          Retrieves the source class and method of the exception.
 SeverityEnum getSeverity()
          Retrieves the severity of the current exception.
 

Method Detail

getCause

public Throwable getCause()
Retrieves the previous exception.

Returns:
the causal or previous or nested exception for this exception

getSeverity

public SeverityEnum getSeverity()
Retrieves the severity of the current exception.

Returns:
the severity of the exception

getExceptionSource

public Class getExceptionSource()
Retrieves the source class and method of the exception.

Returns:
the source of this exception


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.