ProgramixGenericLib v5.0.1

com.programix.thread
Class InterruptException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.programix.thread.InterruptException
All Implemented Interfaces:
Serializable

public class InterruptException
extends RuntimeException

This is a RuntimeException that is used in place of the more traditional InterruptedException to avoid the forced use of a try-catch. This exception is thrown as a signal that a thread should gracefully clean up and die. The thread that constructs this exception also has its interrupt flag set to true.

Author:
Paul Hyde
See Also:
Serialized Form

Constructor Summary
InterruptException()
           
InterruptException(String message)
           
InterruptException(String message, Throwable cause)
           
InterruptException(Throwable cause)
           
 
Method Summary
 
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

InterruptException

public InterruptException(String message,
                          Throwable cause)

InterruptException

public InterruptException(Throwable cause)

InterruptException

public InterruptException(String message)

InterruptException

public InterruptException()

ProgramixGenericLib v5.0.1

Copyright © 2001-2009 Programix Incorporated. All rights reserved. ProgramixGenericLib is free and is OSI Certified Open Source Software under the BSD license.