Class PolicyResponse
java.lang.Object
org.apache.gravitino.dto.responses.BaseResponse
org.apache.gravitino.dto.responses.PolicyResponse
- All Implemented Interfaces:
RESTMessage,RESTResponse
Represents a response for a policy.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PolicyResponse
Creates a new PolicyResponse.- Parameters:
policy- The policy.
-
-
Method Details
-
validate
Description copied from class:BaseResponseValidates the response code.- Specified by:
validatein interfaceRESTMessage- Overrides:
validatein classBaseResponse- Throws:
IllegalArgumentException- if code value is negative.
-