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

io.github.stewseo.client.transport.TransportException Maven / Gradle / Ivy

Go to download

java client to build api objects, handle http transport, and parse/deserialize/serialize json to/from json

There is a newer version: 1.8.0
Show newest version
package io.github.stewseo.client.transport;

import java.io.IOException;

public class TransportException extends IOException {

    private final String endpointId;

    public TransportException(String message, String endpointId) {
        this(message, endpointId, null);
    }

    public TransportException(String message, String endpointId, Throwable cause) {
        super(endpointId == null ? message : "[" + endpointId + "] " + message, cause);
        this.endpointId = endpointId;
    }

    /**
     * Identifier of the API endpoint that caused the exception, if known.
     */
    String getEndpointId() {
        return endpointId;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy