-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw more informative OutOfSpaceExceptions when we run out of space …
…serializing a proto. Before, some encoders would not give any details about position/limit/length. Now a few more places do. Just found this while trying to add some tests for the exception message, and found some encoders weren't setting it. This doesn't fix all the places that OutOfSpaceException didn't have a useful message. PiperOrigin-RevId: 681218740
- Loading branch information
1 parent
02d6885
commit bc24489
Showing
2 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters