org.sape.carbon.core.component
Class ComponentNotFoundException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.sape.carbon.core.exception.BaseRuntimeException
                          |
                          +--org.sape.carbon.core.component.ComponentNotFoundException
All Implemented Interfaces:
Exceptionable, Serializable

public class ComponentNotFoundException
extends BaseRuntimeException

Exception thrown when the component subsytem attempts to fetch a component but cannot find it configuration or attempts to destroy a component that has not been loaded yet.

This exception has severity ERROR.

Copyright 2002 Sapient

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

Field Summary
 
Fields inherited from class org.sape.carbon.core.exception.BaseRuntimeException
delegatedException
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ComponentNotFoundException(Class sourceClass, String logicalComponentName)
          Constructs this exception
ComponentNotFoundException(Class sourceClass, String logicalComponentName, Throwable cause)
          Constructs this exception
 
Method Summary
 SeverityEnum getSeverity()
          Returns the severity of this exception
 
Methods inherited from class org.sape.carbon.core.exception.BaseRuntimeException
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
 

Constructor Detail

ComponentNotFoundException

public ComponentNotFoundException(Class sourceClass,
                                  String logicalComponentName,
                                  Throwable cause)
Constructs this exception

Parameters:
sourceClass - the source class of this exception
logicalComponentName - the logical path name of the component that was requested, but not found
cause - the exception that caused this failure

ComponentNotFoundException

public ComponentNotFoundException(Class sourceClass,
                                  String logicalComponentName)
Constructs this exception

Parameters:
sourceClass - the source class of this exception
logicalComponentName - the logical path name of the component that was requested, but not found
Method Detail

getSeverity

public SeverityEnum getSeverity()
Returns the severity of this exception

Specified by:
getSeverity in interface Exceptionable
Specified by:
getSeverity in class BaseRuntimeException
Returns:
The severity of this exception. A missing component that was expected is considered an "ERROR" level severity.


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.