Type of the underlying cause.
Optional ReadonlycauseOriginal error or contextual value that triggered this exception.
Optional ReadonlycodeApplication-specific error code (e.g. 'jwt.token.expired').
ReadonlydefaultLocale used to build the default message string.
Optional ReadonlyparamsParameter values to interpolate into {{placeholder}} tokens.
ReadonlytranslationsAll available translations keyed by locale.
Options accepted by the LocalizedException constructor.
keyis omitted: it comes from the first positional argument, and accepting it twice would silently ignore one of the two.