public class TopicResponse extends BaseResponse
Constructor and Description |
---|
TopicResponse()
This is the constructor that is used by Jackson deserializer
|
TopicResponse(TopicDTO topic)
Creates a new TopicResponse.
|
Modifier and Type | Method and Description |
---|---|
void |
validate()
Validates the response code.
|
public TopicResponse(TopicDTO topic)
topic
- The topic DTO object.public TopicResponse()
public void validate() throws java.lang.IllegalArgumentException
BaseResponse
validate
in interface RESTMessage
validate
in class BaseResponse
java.lang.IllegalArgumentException
- if code value is negative.