com.tzavellas.dyndelegate
Class RuntimeExceptionWrapper
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeExceptionWrapper
public RuntimeExceptionWrapper()
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.