Package 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:
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
An exception produced when trying to perform an API call.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApiProxyException
(String message) ApiProxyException
(String message, String packageName, String methodName) Returns a newApiProxy.ApiProxyException
where the exception message is the result of callingString.format(message, packageName, methodName)
.ApiProxyException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionprotected ApiProxy.ApiProxyException
Produces a copy of this exception where the stack trace is replaced by one from the place where this method was called.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.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApiProxyException
Returns a newApiProxy.ApiProxyException
where the exception message is the result of callingString.format(message, packageName, methodName)
. -
ApiProxyException
-
ApiProxyException
-
-
Method Details
-
copy
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
Produces a copy of this exception where the stack trace is replaced by one from the place where this method was called.
-