public class NoApiResultException extends SimpleApiException
Constructor and Description |
---|
NoApiResultException(org.apache.http.StatusLine status)
Constructs an instance for the given HTTP status line.
|
NoApiResultException(java.lang.String message,
int statusCode)
Constructs an instance for the given reason and HTTP status code.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatusCode()
The HTTP response code returned by the server.
|
public NoApiResultException(java.lang.String message, int statusCode)
message
- the reason for this exception.statusCode
- the status code returned by the server.public NoApiResultException(org.apache.http.StatusLine status)
status
- the status code and message.java.lang.NullPointerException
- if status
is null
.public int getStatusCode()