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
public static class ApiProxy.ApiProxyException extends RuntimeException
An exception produced when trying to perform an API call.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ApiProxyException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ApiProxyException
public 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
public ApiProxyException(String message)
-
-
Method Detail
-
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.
-
-