Return errors that occurred during metric execution
Check for Artifact Errors After Collecting Metric Results
Collect design cost metrics for artifacts in a project. Then, check if artifacts return errors and were not analyzed.
To open the project, enter this command.
metric_engine = metric.Engine();
Update the trace information for
ensure that the artifact information is up to
Collect results for the design cost metrics by using the
function on the
Access the errors that occurred during analysis.
ans = 0×0 empty struct array with fields: Address UUID ErrorId ErrorMessage
For this example, the artifacts did not return errors.
metricEngine — Metric engine object
Metric engine object to check for errors, specified as a
errors — Artifact errors
Artifact errors that occur when
metric.Engine object is executed,
returned as an array of structures that correspond to the errors. The structure for an
error contains these fields:
Address— Address of artifact that returns the error
UUID— Unique identifier of artifact
ErrorID— Identifier of error
ErrorMessage— Description of error
Introduced in R2022a