org.zalando.riptide.NoRouteException Maven / Gradle / Ivy
package org.zalando.riptide;
import org.apiguardian.api.API;
import org.springframework.http.client.ClientHttpResponse;
import java.io.IOException;
import static org.apiguardian.api.API.Status.INTERNAL;
import static org.apiguardian.api.API.Status.STABLE;
/**
* Thrown when no matching {@link Route route} was found during {@link Dispatcher#dispatch(RoutingTree) dispatch}.
*
* @see NoRoute#noRoute()
*/
@API(status = STABLE)
@SuppressWarnings("serial")
public final class NoRouteException extends HttpResponseException {
private final ClientHttpResponse response;
@API(status = INTERNAL)
public NoRouteException(final ClientHttpResponse response) throws IOException {
super("Unable to dispatch response", response);
this.response = response;
}
// TODO deprecate?
public ClientHttpResponse getResponse() {
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy