org.apache.avalon.framework.component
Class ComponentException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.apache.avalon.framework.CascadingException
|
+--org.apache.avalon.framework.component.ComponentException
- All Implemented Interfaces:
- CascadingThrowable, java.io.Serializable
- public class ComponentException
- extends CascadingException
The exception thrown to indicate a problem with Components.
It is usually thrown by ComponentManager or ComponentSelector.
- Author:
- Peter Donald, Pierpaolo Fumagalli, Federico Barbieri, Stefano Mazzocchi
- See Also:
- Serialized Form
Constructor Summary |
ComponentException(java.lang.String message)
Deprecated. use the String, String version to record the role |
ComponentException(java.lang.String role,
java.lang.String message)
Construct a new ComponentException instance. |
ComponentException(java.lang.String role,
java.lang.String message,
java.lang.Throwable throwable)
Construct a new ComponentException instance. |
ComponentException(java.lang.String message,
java.lang.Throwable throwable)
Deprecated. use the String, String, Throwable version to record the role |
Method Summary |
java.lang.String |
getRole()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ComponentException
public ComponentException(java.lang.String role,
java.lang.String message,
java.lang.Throwable throwable)
- Construct a new
ComponentException
instance.
- Parameters:
message
- the exception messagethrowable
- the throwable
ComponentException
public ComponentException(java.lang.String message,
java.lang.Throwable throwable)
- Deprecated. use the String, String, Throwable version to record the role
- Construct a new
ComponentException
instance.
- Parameters:
message
- the exception messagethrowable
- the throwable
ComponentException
public ComponentException(java.lang.String message)
- Deprecated. use the String, String version to record the role
- Construct a new
ComponentException
instance.
- Parameters:
message
- the exception message
ComponentException
public ComponentException(java.lang.String role,
java.lang.String message)
- Construct a new
ComponentException
instance.
- Parameters:
message
- the exception message
getRole
public final java.lang.String getRole()
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.