Skip to content

Support direct matching against exceptions in ExceptionTypeFilter #35160

Closed
@sbrannen

Description

@sbrannen

Overview

ExceptionTypeFilter currently only supports matching against an exception type. However, most use cases involve matching against an exception instance. Moreover, every use case within the core Spring Framework uses ExceptionTypeFilter to match against concrete exception instances.

We should therefore introduce an overloaded match(Throwable) method in ExceptionTypeFilter in order to provide support for the most common use cases.

Related Issues

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions