[ 
https://issues.apache.org/jira/browse/DAFFODIL-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17953717#comment-17953717
 ] 

Steve Lawrence commented on DAFFODIL-2984:
------------------------------------------

Improved backwards compatibility in commit 
50bd271a31a87bdeeeb565895539ed9640925a7d

> 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)

Reply via email to