Purpose of error identifiers
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programming Utilities en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!