com.google.gwt.core.ext
Class UnableToCompleteException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.google.gwt.core.ext.UnableToCompleteException

public class UnableToCompleteException
extends 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);
      }    
  }
 


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
UnableToCompleteException()
           
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode
 

Constructor Detail

UnableToCompleteException

public UnableToCompleteException()


This javadoc distribution was not produced by Google. The official documentation is here.