org.throwableutil
Class ThrowableUtilOrig

java.lang.Object
  |
  +--org.throwableutil.ThrowableUtilOrig

public class ThrowableUtilOrig
extends java.lang.Object

This class is the template for a utility to throw checked exceptions as runtime exceptions. It will be modified with BCEL to ignore the checking of checked exceptions.

Version:
$Revision: 1.1 $
Author:
Chad Woolley

Constructor Summary
ThrowableUtilOrig()
           
 
Method Summary
static void throwAsRuntime(java.lang.Throwable throwable)
          This method will throw any throwable which is passed in as an unchecked RuntimeException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowableUtilOrig

public ThrowableUtilOrig()
Method Detail

throwAsRuntime

public static void throwAsRuntime(java.lang.Throwable throwable)
This method will throw any throwable which is passed in as an unchecked RuntimeException. Before deployment, this class will be modified with BCEL to remove the CHECKCAST instruction.
Parameters:
throwable - A Throwable which will be re-thrown as a RuntimeException


Copyright © 2003 Throwable Utility for Aspects. All Rights Reserved.