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

io.javalin.community.ssl.SslConfigException.kt Maven / Gradle / Ivy

package io.javalin.community.ssl

/**
 * Exception thrown when the SslConfig is invalid.
 */
class SslConfigException : RuntimeException {
    constructor(type: Types) : super(type.message)

    /**
     * Types of errors that can occur when configuring SSL.
     */
    enum class Types(val message: String) {
        MISSING_CERT_AND_KEY_FILE("There is no certificate or key file provided"),
        MULTIPLE_IDENTITY_LOADING_OPTIONS("Both the certificate and key must be provided using the same method")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy