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

org.zodiac.sdk.nio.common.ErrorFactory Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.sdk.nio.common;

public interface ErrorFactory {
    String INVALID_TRANSPORT_PROTOCOL = "Expected transport protocol to be one of UDP or TCP, but received: ";

    String INVALID_APPLICATION_PROTOCOL = "Expected application protocol to be one of HTTP, but received: ";

    static RuntimeException invalidTransportProtocol(final String s) {
        return new IllegalArgumentException(INVALID_TRANSPORT_PROTOCOL + s);
    }

    static RuntimeException invalidApplicationProtocol(final String s) {
        return new IllegalArgumentException(INVALID_APPLICATION_PROTOCOL + s);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy