public class BaseResponse extends java.lang.Object implements RESTResponse
Constructor and Description |
---|
BaseResponse()
Default constructor for BaseResponse.
|
BaseResponse(int code)
Constructor for BaseResponse.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the response code.
|
public BaseResponse(int code)
code
- The response code.public BaseResponse()
public void validate() throws java.lang.IllegalArgumentException
validate
in interface RESTMessage
java.lang.IllegalArgumentException
- if code value is negative.