public class RequestTimeoutException extends NetworkException
Constructor and Description |
---|
RequestTimeoutException(int code,
java.lang.String body)
Constructs a new BadRequestException.
|
RequestTimeoutException(int code,
java.lang.String body,
Problem problem)
Constructs a new BadRequestException.
|
RequestTimeoutException(java.lang.Throwable cause)
Constructs a new BadRequestException.
|
Modifier and Type | Method and Description |
---|---|
Problem |
getProblem()
The parsed problem details, if available.
|
getBody, getCode
public RequestTimeoutException(int code, java.lang.String body, Problem problem)
code
- The HTTP status code of the responsebody
- The raw body of the responseproblem
- The parsed problem details, may be null if parsing failedpublic RequestTimeoutException(int code, java.lang.String body)
code
- The HTTP status code of the responsebody
- The raw body of the responsepublic RequestTimeoutException(java.lang.Throwable cause)
cause
- The exception that caused this error@Nullable public Problem getProblem()