Skip to content

Commit 537cd7e

Browse files
committed
refactor: use better name for known error extraction
1 parent e665b6e commit 537cd7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/tracing/ErrorTypeUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public static String extractErrorType(@Nullable Throwable error) {
127127
Throwable realError = unwrapError(error);
128128

129129
// 2. Attempt to extract specific error type from the main exception
130-
String specificError = extractSpecificErrorType(realError);
130+
String specificError = extractKnownErrorType(realError);
131131
if (specificError != null) {
132132
return specificError;
133133
}
@@ -158,7 +158,7 @@ private static Throwable unwrapError(Throwable t) {
158158
* it cannot be specifically classified.
159159
*/
160160
@Nullable
161-
private static String extractSpecificErrorType(Throwable error) {
161+
private static String extractKnownErrorType(Throwable error) {
162162
// 1. Extract error info reason
163163
if (error instanceof ApiException) {
164164
String reason = ((ApiException) error).getReason();

0 commit comments

Comments
 (0)