wjhk.jupload2.exception
Class JUploadInterrupted

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by wjhk.jupload2.exception.JUploadInterrupted
All Implemented Interfaces:
Serializable

public class JUploadInterrupted
extends Exception

This class is thrown in the DefaultFileUploadThread, when it detects that the user clicked on the stop button. Using an exception allows to interrupt the whole process. It's up to each method to close/free any resource.

Author:
etienne_sf
See Also:
Serialized Form

Constructor Summary
JUploadInterrupted(String detectedInMethod, UploadPolicy uploadPolicy)
          The standard constructor for this class.
 
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

JUploadInterrupted

public JUploadInterrupted(String detectedInMethod,
                          UploadPolicy uploadPolicy)
The standard constructor for this class.

Parameters:
detectedInMethod - The full name (with class) of the method that creates this exception. Used to log all needed information.
uploadPolicy - The current upload policy, used to log a message.