站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

UnexpectedThrowable (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util
Class UnexpectedThrowable

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

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 inherited from class 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.
 
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.