org.multiverse.api.exceptions
Class InvisibleCheckedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.multiverse.api.exceptions.InvisibleCheckedException
All Implemented Interfaces:
Serializable

public class InvisibleCheckedException
extends RuntimeException

A RuntimeException thrown when a checked exception is thrown but can't be rethrown. The original checked exception can be retrieved by calling the getCause().

Author:
Peter Veentjer
See Also:
Serialized Form

Constructor Summary
InvisibleCheckedException(Exception cause)
          Creates a new InvisibleCheckedException with the given cause.
 
Method Summary
 Exception getCause()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

InvisibleCheckedException

public InvisibleCheckedException(Exception cause)
Creates a new InvisibleCheckedException with the given cause.

Parameters:
cause - the cause of the Exception.
Method Detail

getCause

public Exception getCause()
Overrides:
getCause in class Throwable


Copyright © 2012. All Rights Reserved.