validate method
dynamic
validate()
Implementation
validate() {
// check for required fields
// alas, we cannot check 'error_code' because it's a primitive and you chose the non-beans generator.
// check that fields of type enum have valid values
if (isSetError_code() &&
!t_nebula.ErrorCode.VALID_VALUES.contains(error_code)) {
throw new TProtocolError(TProtocolErrorType.UNKNOWN,
"The field 'error_code' has been assigned the invalid value $error_code");
}
}