org.jboss.util
Class UnexpectedThrowable

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by org.jboss.util.NestedError
              extended by org.jboss.util.UnexpectedThrowable
All Implemented Interfaces:
Serializable, NestedThrowable

public class UnexpectedThrowable
extends NestedError

Thrown to indicate that a Throwable was caught but was not expected. This is typical when catching Throwables to handle and rethrow Exceptions and Errors.

Version:
$Revision: 1.1 $
Author:
Jason Dillon
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.util.NestedThrowable
NestedThrowable.Util
 
Field Summary
 
Fields inherited from class org.jboss.util.NestedError
nested
 
Fields inherited from interface org.jboss.util.NestedThrowable
DETECT_DUPLICATE_NESTING, NESTED_TRACE_ENABLED, PARENT_TRACE_ENABLED
 
Constructor Summary
UnexpectedThrowable()
          Construct a UnexpectedThrowable with no detail.
UnexpectedThrowable(String msg)
          Construct a UnexpectedThrowable with the specified detail message.
UnexpectedThrowable(String msg, Throwable nested)
          Construct a UnexpectedThrowable with the specified detail message and nested Throwable.
UnexpectedThrowable(Throwable nested)
          Construct a UnexpectedThrowable with the specified nested Throwable.
 
Method Summary
 
Methods inherited from class org.jboss.util.NestedError
getCause, getMessage, getNested, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnexpectedThrowable

public UnexpectedThrowable(String msg)
Construct a UnexpectedThrowable with the specified detail message.

Parameters:
msg - Detail message.

UnexpectedThrowable

public UnexpectedThrowable(String msg,
                           Throwable nested)
Construct a UnexpectedThrowable with the specified detail message and nested Throwable.

Parameters:
msg - Detail message.
nested - Nested Throwable.

UnexpectedThrowable

public UnexpectedThrowable(Throwable nested)
Construct a UnexpectedThrowable with the specified nested Throwable.

Parameters:
nested - Nested Throwable.

UnexpectedThrowable

public UnexpectedThrowable()
Construct a UnexpectedThrowable with no detail.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.