Class ComputationException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    public class ComputationException
    extends java.lang.RuntimeException
    Deprecated.
    This exception is no longer thrown by com.google.common. Previously, it was thrown by MapMaker computing maps. When support for computing maps was removed from MapMaker, it was added to CacheBuilder, which throws ExecutionException, UncheckedExecutionException, and ExecutionError. Any code that is still catching ComputationException may need to be updated to catch some of those types instead. (Note that this type, though deprecated, is not planned to be removed from Guava.)
    Wraps an exception that occurred during a computation.
    Since:
    2.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      ComputationException​(java.lang.Throwable cause)
      Deprecated.
      Creates a new instance with the given cause.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ComputationException

        public ComputationException​(@CheckForNull
                                    java.lang.Throwable cause)
        Deprecated.
        Creates a new instance with the given cause.