Class HttpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.talend.sdk.component.api.service.http.HttpException
-
- All Implemented Interfaces:
Serializable
public class HttpException extends RuntimeException
HttpException that wrap an httpResponse
with a status code and an error payload- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpException(Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
getResponse()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HttpException
public HttpException(Response response)
-
-
Method Detail
-
getResponse
public Response getResponse()
-
-