Add configurable error report behavior via ErrorReportConfiguration
· Issue #1066 · FasterXML/jackson-core (original) (raw)
(note: started from in google groups discussion and follow up of #1043 )
Motivation
Currently there is not a user-friendly way to configure how error report is made. So when the issue is resolved, user would be able to perform following configurations.
- Configure maximum length of token to include in error messages
- Configure maximum length of raw content to include in error messages
Modifications
This issue will be used to contain the sub-PRs that are broken down from the very original PR #1043. Currently planned ones are
- First, Add new
ErrorReportConfiguration
type with builder, unit test(s) - Retrofit
IOContext
with newErrorReportConfiguration
- Retrofit
ContentReferece
- Change
TSFBuilder
/JsonFactory
to allow configuring and holding on to that config object - Minor clean-up, JavaDoc etc...