com.google.apphosting.api

## Class ApiProxy.ApiProxyException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - com.google.apphosting.api.ApiProxy.ApiProxyException

- All Implemented Interfaces:
    java.io.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 java.lang.RuntimeException

  An exception produced when trying to perform an API call.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApiProxyException(java.lang.String message)`
    `ApiProxyException(java.lang.String message, java.lang.String packageName, java.lang.String methodName)` Returns a new `ApiProxy.ApiProxyException` where the exception message is the result of calling `String.format(message, packageName, methodName)`.
    `ApiProxyException(java.lang.String message, java.lang.Throwable cause)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ApiProxy.ApiProxyException` | `copy(java.lang.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.

    - ### 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

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ApiProxyException

          public ApiProxyException(java.lang.String message,
                                   java.lang.String packageName,
                                   java.lang.String methodName)

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

    - #### ApiProxyException

          public ApiProxyException(java.lang.String message)

    - #### ApiProxyException

          public ApiProxyException(java.lang.String message,
                                   java.lang.Throwable cause)

  - ### Method Detail

    - #### copy

          public ApiProxy.ApiProxyException copy(java.lang.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.