org.littleshoot.util
Class RuntimeExceptionPair

java.lang.Object
  extended by org.littleshoot.util.RuntimeExceptionPair

public final class RuntimeExceptionPair
extends Object

A pairing of a checked exception and its runtime wrapper. This is used for basic testing of runtime wrapper exceptions.


Constructor Summary
RuntimeExceptionPair(Exception checked, RuntimeException runtime)
          Constructs a new runtime exception pair.
 
Method Summary
 Exception checked()
          Returns the checked exception that is wrapped.
 RuntimeException runtime()
          Returns the wrapping runtime exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeExceptionPair

public RuntimeExceptionPair(Exception checked,
                            RuntimeException runtime)
Constructs a new runtime exception pair.

Parameters:
checked - The checked that is wrapped.
runtime - The wrapping runtime exception.
Method Detail

checked

public Exception checked()
Returns the checked exception that is wrapped.

Returns:
The checked exception that is wrapped.

runtime

public RuntimeException runtime()
Returns the wrapping runtime exception.

Returns:
The wrapping runtime exception.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.