org.chwf.resources
Class ResourceException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.chwf.resources.ResourceException
- All Implemented Interfaces:
- java.io.Serializable
- public class ResourceException
- extends java.lang.Exception
Exception for resource-related errors. Wraps the root cause. This
exception also supports creating arbitrarily long chains of resource
exceptions.
- Author:
- Paul Strack
- See Also:
- Serialized Form
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 |
ResourceException
public ResourceException(java.lang.String message)
- Constructor.
- Parameters:
message
- A message.
ResourceException
public ResourceException(java.lang.Throwable cause)
- Constructor.
- Parameters:
cause
- The root cause.
ResourceException
public ResourceException(java.lang.String message,
java.lang.Throwable cause)
- Constructor.
- Parameters:
message
- A message.cause
- The root cause.
getCause
public java.lang.Throwable getCause()
- Root cause.
- Returns:
- Root cause.
setNextException
public void setNextException(ResourceException ex)
- Method for chaining multiple resource exceptions.
- Parameters:
ex
- The resource exception to chain.
getNextException
public ResourceException getNextException()
- The next chained exception, or null if there is none.
- Returns:
- The next chained exception, or null if there is none.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.