I am curious about the practical uses of error identifiers, for example the 'identifier' property in MException objects.
From the documentation (https://uk.mathworks.com/help/matlab/matlab_prog/capture-information-about-errors.html#bq9tdlq-1), I gather that the identifiers are tags for error statements that make them unique. The docs go on to say that the the identifiers can help better identify the error source and also be used to control the error display. The examples that follow however just show how identifiers are created and extracted, so I struggle to see how it can be useful over say, just returning the 'message' property itself.
Why make error statements unique? What is the utility of the identifiers?
Best Answer