How about handling via `ErrorReportConfiguration 
<http://Error%20Report%20Configuration>`?
Name itself sort of suggests could be covered.

On Thursday, November 30, 2023 at 10:39:02 AM UTC+9 Tatu Saloranta wrote:

> On Wed, Nov 29, 2023 at 2:46 PM Mark Derricutt <ma...@talios.com> 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 jackson-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-dev/4b3b7092-880b-43ec-bb6f-60828f8c71cdn%40googlegroups.com.

Reply via email to