Class BaseGoogleAdsException

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class BaseGoogleAdsException
    extends com.google.api.gax.rpc.ApiException
    Base class for GoogleAdsException. Provides a generic holder for GoogleAdsFailures which can be replaced with statically typed subclasses for a specific version of GoogleAdsFailure.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseGoogleAdsException​(com.google.api.gax.rpc.ApiException original, T failure, io.grpc.Metadata metadata)
      Create from ApiException, GoogleAdsFailure (as Message) and metadata.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.protobuf.Message getGoogleAdsFailure()
      Return the decoded GoogleAdsFailure.
      java.lang.String getRequestId()
      Get the request id returned in the RPC trailers.
      • Methods inherited from class com.google.api.gax.rpc.ApiException

        getDomain, getErrorDetails, getMetadata, getReason, getStatusCode, isRetryable
      • 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
    • Constructor Detail

      • BaseGoogleAdsException

        public BaseGoogleAdsException​(com.google.api.gax.rpc.ApiException original,
                                      T failure,
                                      io.grpc.Metadata metadata)
        Create from ApiException, GoogleAdsFailure (as Message) and metadata.
    • Method Detail

      • getRequestId

        public java.lang.String getRequestId()
        Get the request id returned in the RPC trailers. Returns null if the RPC has not completed or no request id was received.
      • getGoogleAdsFailure

        public com.google.protobuf.Message getGoogleAdsFailure()
        Return the decoded GoogleAdsFailure. Subclasses can override this method to return version specific types.