Class ApiProxy.ApiProxyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.apphosting.api.ApiProxy.ApiProxyException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ApiProxy.ApiDeadlineExceededException, ApiProxy.ApplicationException, ApiProxy.ArgumentException, ApiProxy.CallNotFoundException, ApiProxy.CancelledException, ApiProxy.CapabilityDisabledException, ApiProxy.FeatureNotEnabledException, ApiProxy.OverQuotaException, ApiProxy.RequestTooLargeException, ApiProxy.ResponseTooLargeException, ApiProxy.RPCFailedException, ApiProxy.UnknownException
Enclosing class:
ApiProxy

public static class ApiProxy.ApiProxyException extends RuntimeException
An exception produced when trying to perform an API call.
See Also:
  • Constructor Details

    • ApiProxyException

      public ApiProxyException(String message, String packageName, String methodName)
      Returns a new ApiProxy.ApiProxyException where the exception message is the result of calling String.format(message, packageName, methodName).
    • ApiProxyException

      public ApiProxyException(String message)
    • ApiProxyException

      public ApiProxyException(String message, Throwable cause)
  • Method Details

    • copy

      public ApiProxy.ApiProxyException copy(StackTraceElement[] stackTrace)
      Clones this exception and then sets this Exception as the cause of the clone and sets the given stack trace in the clone.
      Parameters:
      stackTrace - The stack trace to set in the returned clone
      Returns:
      a clone of this Exception with this Exception as the cause and with the given stack trace.
    • cloneWithoutStackTrace

      protected ApiProxy.ApiProxyException cloneWithoutStackTrace()
      Produces a copy of this exception where the stack trace is replaced by one from the place where this method was called.