com.tzavellas.dyndelegate
Class RuntimeExceptionWrapper

java.lang.Object
  extended by com.tzavellas.dyndelegate.RuntimeExceptionWrapper
All Implemented Interfaces:
ThrowableConverter

public class RuntimeExceptionWrapper
extends Object
implements ThrowableConverter

Wrap any java.lang.Throwable inside a java.lang.RuntimeException.

Author:
Spiros Tzavellas
See Also:
ThrowableConverter

Constructor Summary
RuntimeExceptionWrapper()
           
 
Method Summary
 Throwable convert(Throwable ex)
          Wrap the specified Throwable to a RuntimeException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeExceptionWrapper

public RuntimeExceptionWrapper()
Method Detail

convert

public Throwable convert(Throwable ex)
Wrap the specified Throwable to a RuntimeException

Specified by:
convert in interface ThrowableConverter
Parameters:
ex - the Throwable to be wrapped
Returns:
a RuntimeException


Copyright © 2005-2009 spiros.blog(). All Rights Reserved.