Skip to content

Add guidelines about using checked exception with proxies in Kotlin #22412

Closed
@masc3d

Description

@masc3d

Im seeing UndeclaredThrowableException for kt methods which are invoked through spring proxy (eg. when using @Transactional)

it can be mitigated by explicit @Throws(Throwable::class)
The issue does not occur for RuntimeExceptions

example: https://github.com/masc3d/spring-kotlin-jpa

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions