public class BadRequestException extends NetworkException
| Constructor and Description |
|---|
BadRequestException(int code,
java.lang.String body,
Problem problem,
SubmitTransactionAsyncResponse submitTransactionAsyncProblem)
Constructs a new BadRequestException.
|
| Modifier and Type | Method and Description |
|---|---|
Problem |
getProblem()
The parsed problem details, if available.
|
SubmitTransactionAsyncResponse |
getSubmitTransactionAsyncProblem()
The parsed async transaction submission problem details.
|
getBody, getCodepublic BadRequestException(int code,
@Nullable
java.lang.String body,
@Nullable
Problem problem,
@Nullable
SubmitTransactionAsyncResponse submitTransactionAsyncProblem)
code - The HTTP status code of the responsebody - The raw body of the responseproblem - The parsed problem details, may be null if parsing failed@Nullable public Problem getProblem()
@Nullable public SubmitTransactionAsyncResponse getSubmitTransactionAsyncProblem()
This field is only present when the exception is thrown as a result of calling the "Submit Transaction Asynchronously" API endpoint and the server returned an error response. In other cases, it will be null.