Package com.google.cloud.hadoop.util
Class GrpcErrorTypeExtractor
- java.lang.Object
-
- com.google.cloud.hadoop.util.GrpcErrorTypeExtractor
-
- All Implemented Interfaces:
ErrorTypeExtractor
public class GrpcErrorTypeExtractor extends Object implements ErrorTypeExtractor
Implementation forErrorTypeExtractorfor exception specifically thrown from gRPC path.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.cloud.hadoop.util.ErrorTypeExtractor
ErrorTypeExtractor.ErrorType
-
-
Field Summary
Fields Modifier and Type Field Description static GrpcErrorTypeExtractorINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbucketAlreadyExists(Exception e)Determines if the given exception indicates that bucket already exists.ErrorTypeExtractor.ErrorTypegetErrorType(Exception error)
-
-
-
Field Detail
-
INSTANCE
public static final GrpcErrorTypeExtractor INSTANCE
-
-
Method Detail
-
getErrorType
public ErrorTypeExtractor.ErrorType getErrorType(Exception error)
- Specified by:
getErrorTypein interfaceErrorTypeExtractor
-
bucketAlreadyExists
public boolean bucketAlreadyExists(Exception e)
Description copied from interface:ErrorTypeExtractorDetermines if the given exception indicates that bucket already exists.- Specified by:
bucketAlreadyExistsin interfaceErrorTypeExtractor
-
-