Module prov.model

Class UnhandledException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openprovenance.apache.commons.lang.exception.NestableRuntimeException
org.openprovenance.apache.commons.lang.UnhandledException
All Implemented Interfaces:
Serializable, org.openprovenance.apache.commons.lang.exception.Nestable

public class UnhandledException extends org.openprovenance.apache.commons.lang.exception.NestableRuntimeException

Thrown when it is impossible or undesirable to consume or throw a checked exception.

This exception supplements the standard exception classes by providing a more semantically rich description of the problem.

UnhandledException represents the case where a method has to deal with a checked exception but does not wish to. Instead, the checked exception is rethrown in this unchecked wrapper.

 public void foo() {
   try {
     // do something that throws IOException
   } catch (IOException ex) {
     // don't want to or can't throw IOException from foo()
     throw new UnhandledException(ex);
   }
 }
 
Since:
2.0
Version:
$Id: UnhandledException.java 437554 2006-08-28 06:21:41Z bayard $
Author:
Matthew Hawthorne
See Also: