org.apache.commons.convert1
Class ThrowExceptionConverter
java.lang.Object
org.apache.commons.convert1.ThrowExceptionConverter
- All Implemented Interfaces:
- org.apache.commons.convert1.Converter
public class ThrowExceptionConverter
- extends Object
- implements org.apache.commons.convert1.Converter
Converter implementation that throws a PassTestException
when convert is called.
The idea is that catching this exception is a clear signal that this method
has been called.
- Author:
- Robert Burrell Donkin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrowExceptionConverter
public ThrowExceptionConverter()
convert
public Object convert(Class type,
Object value)
- Specified by:
convert in interface org.apache.commons.convert1.Converter
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.