com.apollographql.subscription.exception.InvalidCallbackExtensionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of federation-spring-subscription-callback Show documentation
Show all versions of federation-spring-subscription-callback Show documentation
GraphQL Java server support for Apollo Federation
The newest version!
package com.apollographql.subscription.exception;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Exception thrown when callback extension data is malformed (missing entries or have null values).
*/
public class InvalidCallbackExtensionException extends RuntimeException {
public InvalidCallbackExtensionException(Map callbackExtension) {
super(
String.format(
"Invalid callback protocol extension specified, extension %s",
callbackExtension.entrySet().stream()
.map(mapper -> mapper.getKey() + "=" + mapper.getValue())
.collect(Collectors.joining(", ", "{", "}"))));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy