case SnmpValue.SET_REQUEST_PDU:
return new SetRequestPduValue(requestId, error, errorIndex, varBindList);
case SnmpValue.GET_RESPONSE_PDU:
return new GetResponsePduValue(requestId, error, errorIndex, varBindList);
default:
throw new SnmpRuntimeException("invalid type: " + typeName(type));
}
}