Replies: 1 comment
-
The method can still throw a SerdeException (which extends IOException), and any IOException that the encoder throws (format dependent, e.g. field size limits), so I don't think it can be more narrow. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue description
I was a bit surprised to discover that
ObjectMapper.writeValueAsString
throwsIOException
even though it's not doing IO. There is no description of when this can be thrown or why. Perhaps there should be a tighter / clearer exception type introduced in Micronaut 5?Beta Was this translation helpful? Give feedback.
All reactions