com.mmoui.manager.services
Class UpdateElement.UpdateCancelledException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.InterruptedException
              extended by com.mmoui.manager.services.UpdateElement.UpdateCancelledException
All Implemented Interfaces:
java.io.Serializable
Enclosing interface:
UpdateElement

public static class UpdateElement.UpdateCancelledException
extends java.lang.InterruptedException

Defines an exception that can occur when an update is cancelled. This extends the InterruptedException class which can be used for generic cancellations by adding a Status capability which can be used to determine coloration of the message that should be displayed to the user.

Version:
$Id: UpdateElement.java 198 2009-05-10 23:30:33Z mpdelbuono $
Author:
Matthew P. Del Buono
See Also:
Serialized Form

Constructor Summary
UpdateElement.UpdateCancelledException(java.lang.String msg, UpdateStatusListener.Status status)
          Creates a new UpdateCancelledException with the specified message and status code
 
Method Summary
 void updateStatus(UpdateStatusListener listener)
          Updates the specified UpdateStatusListener with the details from this exception
 
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

UpdateElement.UpdateCancelledException

public UpdateElement.UpdateCancelledException(java.lang.String msg,
                                              UpdateStatusListener.Status status)
Creates a new UpdateCancelledException with the specified message and status code

Parameters:
msg - the message to display to the user
status - the status type to
Method Detail

updateStatus

public void updateStatus(UpdateStatusListener listener)
Updates the specified UpdateStatusListener with the details from this exception

Parameters:
listener - the listener to update