You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Robert Bathmann (Jira)" <ji...@apache.org> on 2025/06/18 19:52:00 UTC

[jira] [Commented] (DAFFODIL-2984) Diagnostic API does not allow for getting just the message

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

Robert Bathmann commented on DAFFODIL-2984:
-------------------------------------------

Is getMessageOnly available and working in 3.11.0 as stated in the release notes? The method is now available in the Java API but it seems to still include the schema context.

> 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: 4.0.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)