INCLUDE_CAUSE

A predefined configuration for including only the exception class and the cause when handling or transforming exceptions using the DetailsConfiguration class.

This configuration excludes the stack trace and the localized message.

  • includeStackTrace: false (stack trace is excluded)

  • includeMessage: false (the exception message is excluded)

  • includeCause: true (cause of the exception is included)

  • includeLocalizedMessage: false (the localized exception message is excluded)