[ https://issues.apache.org/jira/browse/DAFFODIL-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Lawrence updated DAFFODIL-2984: ------------------------------------- Fix Version/s: 3.11.0 (was: 4.0.0) > Diagnostic API does not allow for getting just the message > ---------------------------------------------------------- > > Key: DAFFODIL-2984 > URL: https://issues.apache.org/jira/browse/DAFFODIL-2984 > Project: Daffodil > Issue Type: Improvement > Components: API > Reporter: Steve Lawrence > Priority: Major > Fix For: 3.11.0 > > > The current Diagnostic API has a public getMessage() function, but that > returns the modeName + message + schema context. We should change the API so > that toString() returns all that but getMessage() should return just the > message. This would provideĀ API users easy access to just the portions of a > diagnostic they care about. We shoudl also consider if modeName (e.g. > "Validation Error") needs a method to a access it, or if there is sufficient > information in the Diagnostics for a API user to determine the mode and > display their own string. -- This message was sent by Atlassian Jira (v8.20.10#820010)