
br.com.guiabolso.events.server.exception.handler.LambdaEventExceptionHandler.kt Maven / Gradle / Ivy
package br.com.guiabolso.events.server.exception.handler
import br.com.guiabolso.events.model.RequestEvent
import br.com.guiabolso.events.model.ResponseEvent
import br.com.guiabolso.tracing.Tracer
class LambdaEventExceptionHandler(
private val func: suspend (T, RequestEvent, Tracer) -> ResponseEvent
) : EventExceptionHandler {
override suspend fun handleException(exception: T, event: RequestEvent, tracer: Tracer) =
func(exception, event, tracer)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy