GWT 2.7.0

com.google.gwt.core.ext
Class UnableToCompleteException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.google.gwt.core.ext.UnableToCompleteException
All Implemented Interfaces:
java.io.Serializable

public class UnableToCompleteException
extends java.lang.Exception

Used to indicate that some part of a multi-step process failed. Typically, operation can continue after this exception is caught. Before throwing an object of this type, the thrower

After catching an object of this type, the catcher
  void lowLevel(Logger logger) throws UnableToCompleteException {
      try {
          doSomethingThatMightFail();
      catch (SomeException e) {
          // Log low-level detail and the caught exception.
          //
          logger.log("detailed problem explanation for user eyes...", e);

          // Do not include the caught exception.
          //
          throw new UnableToCompleteException();
      }
  }

  void highLevel(Logger logger) {
      try {
          // Multiple calls are shown to indicate that the process can
          // include any number of steps.
          //
          lowLevel(logger);
          lowLevel(logger);
          lowLevel(logger);
      }
      catch (UnableToCompleteException e) {
          logger.log("high-level thing failed", e);
      }
  }
 

See Also:
Serialized Form

Constructor Summary
UnableToCompleteException()
           
 
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

UnableToCompleteException

public UnableToCompleteException()

GWT 2.7.0