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

io.smallrye.graphql.client.UnexpectedCloseException Maven / Gradle / Ivy

Go to download

SmallRye specific Client API, extending the MicroProfile client api, allowing us to play with the api first before we move it to the spec

There is a newer version: 2.11.0
Show newest version
package io.smallrye.graphql.client;

/**
 * Marks a close WebSocket message from the server that was unexpected.
 */
public class UnexpectedCloseException extends InvalidResponseException {

    private final int closeStatusCode;

    public UnexpectedCloseException(String message, int closeStatusCode) {
        super(message);
        this.closeStatusCode = closeStatusCode;
    }

    public UnexpectedCloseException(String message, Throwable cause, int closeStatusCode) {
        super(message, cause);
        this.closeStatusCode = closeStatusCode;
    }

    /**
     * The close status code returned by the server.
     */
    public int getCloseStatusCode() {
        return closeStatusCode;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy