-
Couldn't load subscription status.
- Fork 89
fix: correct AppendSerializtionError typo #2037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f05a58c 5c1c803 6052442 b8940f8 c237a23 ee17683 acb10b5 227c956 4cf3817 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -216,10 +216,8 @@ public static StorageException toStorageException(Throwable exception) { | |
| } | ||
| | ||
| /** | ||
| * This exception is thrown from {@link JsonStreamWriter#append()} when the client side Json to | ||
| * Proto serializtion fails. It can also be thrown by the server in case rows contains invalid | ||
| * data. The exception contains a Map of indexes of faulty rows and the corresponding error | ||
| * message. | ||
| * This class has a typo in the name. It will be removed soon. Please use {@link | ||
| * AppendSerializationError} | ||
| */ | ||
| public static class AppendSerializtionError extends StatusRuntimeException { | ||
| private final Map<Integer, String> rowIndexToErrorMessage; | ||
| | @@ -244,6 +242,23 @@ public String getStreamName() { | |
| } | ||
| } | ||
| | ||
| /** | ||
| * This exception is thrown from {@link JsonStreamWriter#append()} when the client side Json to | ||
| * Proto serializtion fails. It can also be thrown by the server in case rows contains invalid | ||
| * data. The exception contains a Map of indexes of faulty rows and the corresponding error | ||
| * message. | ||
| */ | ||
| public static class AppendSerializationError extends AppendSerializtionError { | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Javadoc? (I expect a copy of AppendSerializtionError) Explanation of typo and backward compatibility is nice. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since we don't want to break customers using the AppendSerializationError(with typo) and at the same time, move all the reference we have to that class in the library, to the class without typo, it made sense to use The other way round would mean, we move the code in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense. | ||
| | ||
| public AppendSerializationError( | ||
| int codeValue, | ||
| String description, | ||
| String streamName, | ||
| Map<Integer, String> rowIndexToErrorMessage) { | ||
| super(codeValue, description, streamName, rowIndexToErrorMessage); | ||
| } | ||
| } | ||
| | ||
| /** This exception is used internally to handle field level parsing errors. */ | ||
| public static class FieldParseError extends IllegalArgumentException { | ||
| private final String fieldName; | ||
| | ||
Uh oh!
There was an error while loading. Please reload this page.