Skip to content

Consider removing NoStackTraceThrowable and NoStackTraceExceptionΒ #5012

@tsegismont

Description

@tsegismont

There are several places in the codebase where NoStackTraceThrowable is used to convey a failure which does not need a stacktrace.

This isn't a big issue with the callback or futurized API, but when using the virtual threads threading model or Kotlin coroutines, it forces users to catch Throwable in their applications.

VertxException extends RuntimeException and can be created without filling the stacktrace. In fact, we already have a NoStackTraceException which extends VertxException.

In Vert.x 5, we should consider removing NoStackTraceThrowable.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions