-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements for
ContentCodec
exceptions (#1428)
Motivation: Align the order or arguments with standard JDK classes and throw these types in all cases. Modification: - Swap `message` and `cause` arguments order to make them similar to the superclass; - Throw `CodecDecodingException/CodecEncodingException` when the codec is closed; - Remove unnecessary `requireNonNull` for aggregated encode and decode; Result: Aligned exceptions API and consistent exception type thrown from the codec.
- Loading branch information
1 parent
a72066d
commit 1a7e144
Showing
3 changed files
with
23 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
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