stevedlawrence opened a new pull request, #1478: URL: https://github.com/apache/daffodil/pull/1478
- The Diagnostic.getMessage function no longer includes the schema context and mode name. This allows API users to retrieve just the message if they don't care about the other information or if they want to get it separately. - Adds a new Diagnostic.getModeName function to get the mode (e.g. Schema Definition Warning, Parse Error) - The Diagnostic.toString() function is not changed, returning the combined mode name, message and context information as one string. - The Diagnostic.componentText is removed. The only Diagnostic that changed this from the empty string default was the "AssertionFailed" diagnostic via the "details" parameter, but nothing ever set this paramter, so componentText was always empty Deprecation/Compatibility: The Diagnostic.getMessage() function no longer returns the diagnostic mode, schema location, or data location. It only returns the actual message portion of a diagnostic. To get the previous behavior, call Diagnostic.toString() instead. A new Diagnostic.getModeName() function is added to return just the mode (Schema Definition Warning, Parse Error, etc). DAFFODIL-2984 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@daffodil.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org