org.eclipse.gemini.blueprint.util.internal
Class ReflectionUtils.InvocationCheckedExceptionWrapper

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.eclipse.gemini.blueprint.util.internal.ReflectionUtils.InvocationCheckedExceptionWrapper
All Implemented Interfaces:
Serializable
Enclosing class:
ReflectionUtils

public static class ReflectionUtils.InvocationCheckedExceptionWrapper
extends RuntimeException

Runtime exception wrapper for checked exceptions thrown by invoked methods. Provides a cast free method to get the actual exception.

Author:
Costin Leau
See Also:
Serialized Form

Constructor Summary
ReflectionUtils.InvocationCheckedExceptionWrapper(Exception cause)
           
 
Method Summary
 Exception getTargetException()
          Return the target exception.
 
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

ReflectionUtils.InvocationCheckedExceptionWrapper

public ReflectionUtils.InvocationCheckedExceptionWrapper(Exception cause)
Method Detail

getTargetException

public Exception getTargetException()
Return the target exception. It will return a (checked) exception rather then a Throwable.

Returns:
target exception


Copyright © 2006-2013. All Rights Reserved.