Class UnableToCompleteException

  extended byjava.lang.Throwable
      extended byjava.lang.Exception

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 {
      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.
      catch (UnableToCompleteException e) {
          logger.log("high-level thing failed", e);

Field Summary
Fields inherited from class java.lang.Object
typeId, typeName
Constructor Summary
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


public UnableToCompleteException()

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