Class AbstractErrorUtils.ErrorPath<GoogleAdsErrorType extends com.google.protobuf.Message>
- java.lang.Object
-
- com.google.ads.googleads.lib.utils.AbstractErrorUtils.ErrorPath<GoogleAdsErrorType>
-
- 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.ObjectWrapper 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 Summary
Constructors Constructor Description ErrorPath(GoogleAdsErrorType error, java.lang.String fieldName, java.util.Optional<java.lang.Long> index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleAdsErrorTypegetError()java.lang.StringgetFieldName()java.util.Optional<java.lang.Long>getIndex()booleanisOperationIndex()
-
-
-
Constructor Detail
-
ErrorPath
public ErrorPath(GoogleAdsErrorType error, java.lang.String fieldName, java.util.Optional<java.lang.Long> index)
-
-
Method Detail
-
getError
public GoogleAdsErrorType getError()
-
getFieldName
public java.lang.String getFieldName()
-
getIndex
public java.util.Optional<java.lang.Long> getIndex()
-
isOperationIndex
public boolean isOperationIndex()
-
-