Class AbstractErrorUtils.ErrorPath<GoogleAdsErrorType extends com.google.protobuf.Message>

  • Enclosing class:
    AbstractErrorUtils<GoogleAdsFailureT extends com.google.protobuf.Message,​GoogleAdsErrorT extends com.google.protobuf.Message,​FieldPathElementT extends com.google.protobuf.Message>

    protected static class AbstractErrorUtils.ErrorPath<GoogleAdsErrorType extends com.google.protobuf.Message>
    extends java.lang.Object
    Wrapper around a (@link GoogleAdsErrorT} specifying the location the error occurred, if available.

    Although multiple field paths are possible in a GoogleAdsError, this object only contains the first FieldPathElement. Currently this is the only element required to identify which operation caused the failure, though future updates may expand on this class to provide additional information from the FieldPathElements.

    • Constructor Detail

      • ErrorPath

        public ErrorPath​(GoogleAdsErrorType error,
                         java.lang.String fieldName,
                         java.util.Optional<java.lang.Long> index)
    • Method Detail

      • getFieldName

        public java.lang.String getFieldName()
      • getIndex

        public java.util.Optional<java.lang.Long> getIndex()
      • isOperationIndex

        public boolean isOperationIndex()