All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.guiabolso.events.server.exception.handler.LambdaEventExceptionHandler.kt Maven / Gradle / Ivy

There is a newer version: 8.0.4
Show newest version
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