com.jrockit.memleak.spi
Class SpiException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jrockit.memleak.MemLeakException
              extended by com.jrockit.memleak.spi.SpiException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConnectionClosedException, MLPException, NoSuchIdException, NotAClassException, NotAnArrayException

public class SpiException
extends MemLeakException

Super class for MemLeak SPI Exceptions.

Author:
mpersson
See Also:
Serialized Form

Constructor Summary
SpiException(java.lang.String message)
          Create a new exception with the given message.
SpiException(java.lang.Throwable cause)
          Constructs a new exception with the specified cause.
 
Method Summary
static
<T> T
unhandled(java.lang.Exception e)
          Wrap a non-SpiException 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

SpiException

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

Parameters:
message - the exception message

SpiException

public SpiException(java.lang.Throwable cause)
Constructs a new exception with the specified cause.

Parameters:
cause - the cause
Method Detail

unhandled

public static <T> T unhandled(java.lang.Exception e)
                   throws SpiException
Wrap a non-SpiException 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:
SpiException


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