On Wed, Nov 29, 2023 at 2:46 PM Mark Derricutt <[email protected]> wrote: > > Tatu, > > When getting an JSON exception, even with source redacted - I was > wondering if it was possible to configure jackson to not even _mention_ > the source, i.e instead of getting; > > Unexpected end-of-input: expected close marker for Array (start marker > at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` > disabled); line: 1, column: 12]) > > just reporting: > > Unexpected end-of-input: expected close marker for Array; line: 1, > column: 12 > > I couldn't see anything in the source to possible configure that, so am > looking at regexing it out myself, tho I'd rather not manually do this > for all exceptions if possible - I could seem to see any way of just > getting the base message, and line/column information from any > exceptions to build up my own message from fields either.
`JacksonException` base has `getOriginalMessage()` and is the base of all Jackson-produced exceptions. Maybe that could help? Other than that there is no functionality; I would be open to PR for another `StreamReadFeature`, although it gets to quite specific handling at this point. -+ Tatu +- -- You received this message because you are subscribed to the Google Groups "jackson-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-dev/CAL4a10iOXZh1%3D2Yvw0KCNQOTUwD5ke1dStDeSieP%3DS2qYohb-A%40mail.gmail.com.
