com.jrockit.memleak
Class InspectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jrockit.memleak.MemLeakException
              extended by com.jrockit.memleak.InspectException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GarbageCollectedException, NoMatchingFieldException

public class InspectException
extends MemLeakException

Super class for all exceptions possible when inspecting objects through MemLeak (that is, forward navigating the object graph).

Author:
mpersson
See Also:
Serialized Form

Constructor Summary
InspectException(java.lang.String message)
          Create a new exception with the given message.
 
Method Summary
static
<T> T
unhandled(java.lang.Exception e)
          Wrap a non-InspectException exception into something that may be thrown, and throw it.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InspectException

public InspectException(java.lang.String message)
Create a new exception with the given message.

Parameters:
message - the exception message
Method Detail

unhandled

public static <T> T unhandled(java.lang.Exception e)
                   throws InspectException
Wrap a non-InspectException exception into something that may be thrown, and throw it.

Type Parameters:
T - dummy type to be used by return statements
Parameters:
e -
Returns:
nothing, since an exception is always thrown
Throws:
InspectException


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.