org.apache.commons.convert1
Class ThrowExceptionConverter

java.lang.Object
  extended by 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

Constructor Summary
ThrowExceptionConverter()
           
 
Method Summary
 Object convert(Class type, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowExceptionConverter

public ThrowExceptionConverter()
Method Detail

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.