Throw QueryException instead of UnsupportedOperationException for labels() with
aquery.
A runtime exception should really only be used for programming errors. In this
case the code logic is sound, just that the feature isn't supported.
RELNOTES: None
@@ -780,6 +780,7 @@ message ActionQuery {
TOP_LEVEL_TARGETS_WITH_SKYFRAME_STATE_NOT_SUPPORTED = 11
[(metadata) = { exit_code: 2 }];
SKYFRAME_STATE_AFTER_EXECUTION = 12 [(metadata) = { exit_code: 1 }];
+ LABELS_FUNCTION_NOT_SUPPORTED = 13 [(metadata) = { exit_code: 2 }];
}
Code code = 1;
