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:BaseResponse
Validates the response code.- Specified by:
validate
in interfaceRESTMessage
- Overrides:
validate
in classBaseResponse
- Throws:
IllegalArgumentException
- if code value is negative.
-