io.github.stewseo.client.transport.TransportException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yelp-fusion-client Show documentation
Show all versions of yelp-fusion-client Show documentation
java client to build api objects, handle http transport, and parse/deserialize/serialize json to/from json
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