public static class LightningResponse.FailedResponse
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
FailedResponse(int statusCode,
java.lang.String errMsg)
Initialized a failed response.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrMsg()
Get the error message related to the failure.
|
int |
getStatusCode()
Get the HTTP status code.
|
java.lang.String |
toString() |
public FailedResponse(int statusCode, java.lang.String errMsg)
statusCode
- the HTTP status codeerrMsg
- the error messagepublic java.lang.String getErrMsg()
public int getStatusCode()
public java.lang.String toString()
toString
in class java.lang.Object