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

com.lightningkite.lightningserver.exceptions.NoExceptionReporter.kt Maven / Gradle / Ivy

The newest version!
package com.lightningkite.lightningserver.exceptions

import com.lightningkite.lightningserver.serverhealth.HealthStatus

/**
 * An ExceptionReporter implementation that does nothing. If you don't want any form of reporting use this.
 */
object NoExceptionReporter : ExceptionReporter {
    override suspend fun healthCheck(): HealthStatus =
        HealthStatus(HealthStatus.Level.OK, additionalMessage = "No exception reporting")

    override suspend fun report(t: Throwable, context: Any?): Boolean = false
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy