org.zodiac.sdk.nio.common.ErrorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zodiac-sdk-nio Show documentation
Show all versions of zodiac-sdk-nio Show documentation
Zodiac SDK NIO2(New Non-Blocking IO)
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);
}
}