In the current version of the library in ExceptionHandlerContextImpl to catch exceptions is used catch (e: Throwable) construction. Therefore, all possible exceptions are handled when the method execute is called. This method of exception handling can lead to undefined behavior, because e.g. OOM or CancellationException will be handled. So, we need to find a solution for such cases - do exceptions rethrow or something else.
In the current version of the library in
ExceptionHandlerContextImpl
to catch exceptions is usedcatch (e: Throwable)
construction. Therefore, all possible exceptions are handled when the methodexecute
is called. This method of exception handling can lead to undefined behavior, because e.g. OOM orCancellationException
will be handled. So, we need to find a solution for such cases - do exceptions rethrow or something else.