net.pleso.framework.client.bl.exceptions
Class AsyncCallbackFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.pleso.framework.client.bl.exceptions.FrameworkRuntimeException
                  extended by net.pleso.framework.client.bl.exceptions.AsyncCallbackFailureException
All Implemented Interfaces:
java.io.Serializable

public class AsyncCallbackFailureException
extends FrameworkRuntimeException

Represents wrapper for server exceptions. When server returns exception through AsyncCallback.onFailure(Throwable) framework should rethrow Throwable as RuntimeException. Usually it looks as follows:

 public void onFailure(Throwable caught) {
         throw new AsyncCallbackFailureException("Error", caught);
 }
 

See Also:
Serialized Form

Constructor Summary
AsyncCallbackFailureException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsyncCallbackFailureException

public AsyncCallbackFailureException(java.lang.String message,
                                     java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.

Parameters:
message - the detail message
cause - the cause


Copyright © 2006-2007 pleso.net crew All Rights Reserved.