net.grinder.common
Class UncheckedInterruptedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.grinder.common.UncheckedGrinderException
                  extended by net.grinder.common.UncheckedInterruptedException
All Implemented Interfaces:
Serializable

public class UncheckedInterruptedException
extends UncheckedGrinderException

Make InterruptedExceptions and InterruptedIOExceptions easier to propagate.

Our policy on interrupt handling:

Author:
Philip Aston
See Also:
Serialized Form

Constructor Summary
UncheckedInterruptedException(InterruptedException e)
          Constructor.
 
Method Summary
static void ioException(IOException e)
          InterruptedIOExceptions are a pain to handle as they extend IOException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UncheckedInterruptedException

public UncheckedInterruptedException(InterruptedException e)
Constructor.

Parameters:
e - The original InterruptedException.
Method Detail

ioException

public static void ioException(IOException e)
InterruptedIOExceptions are a pain to handle as they extend IOException. IOException handlers should call this, unless they are part of an InterruptibleRunnable and know what they're doing.

Parameters:
e - An IOException.


Copyright © 2000-2013. All Rights Reserved.