Skip to content

Commit bce8d0c

Browse files
zhuxiaolong37huiguangjun
authored andcommitted
Change the exception thrown by StorageClass to return unknown
1 parent 98ec075 commit bce8d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/aliyun/oss/model/StorageClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ public static StorageClass parse(String storageClassString) {
6767
}
6868
}
6969

70-
throw new IllegalArgumentException("Unable to parse " + storageClassString);
70+
return Unknown;
7171
}
7272
}

0 commit comments

Comments
 (0)