
pl.allegro.tech.hermes.common.exception.EndpointProtocolNotSupportedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-common Show documentation
Show all versions of hermes-common Show documentation
Fast and reliable message broker built on top of Kafka.
The newest version!
package pl.allegro.tech.hermes.common.exception;
import pl.allegro.tech.hermes.api.EndpointAddress;
import pl.allegro.tech.hermes.api.ErrorCode;
public class EndpointProtocolNotSupportedException extends HermesException {
public EndpointProtocolNotSupportedException(EndpointAddress endpoint) {
super(
String.format(
"Protocol %s not supported in endpoint %s",
endpoint.getProtocol(), endpoint.toString()));
}
@Override
public ErrorCode getCode() {
return ErrorCode.VALIDATION_ERROR;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy