com.inpaas.http.model.exception.HttpClientException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of inpaas-httpclient Show documentation
Show all versions of inpaas-httpclient Show documentation
HTTP Client for REST and SOAP Services
package com.inpaas.http.model.exception;
public class HttpClientException extends RuntimeException {
public HttpClientException(String message, Throwable cause) {
super(message, cause);
}
public static final HttpClientException unwrap(Throwable cause) {
if (cause == null) {
return new HttpClientException("error.httpclient", cause);
} else if (cause instanceof HttpClientException) {
return (HttpClientException) cause;
} else {
return new HttpClientException(cause.getMessage(), cause);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy