You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2021/05/20 12:34:03 UTC

[jira] [Closed] (DAFFODIL-2100) Error handling some parseErrors

     [ https://issues.apache.org/jira/browse/DAFFODIL-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-2100.
-----------------------------------

Closed due to no activity and  no re-occurrence. If the issue re-occurs the ticket can be reopened or addressed in a new one.

> Error handling some parseErrors
> -------------------------------
>
>                 Key: DAFFODIL-2100
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2100
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Back End
>            Reporter: Brandon Sloane
>            Assignee: Dave Thompson
>            Priority: Major
>             Fix For: 2.4.0
>
>
> ProcessingError.toParseError erronausly passes itself as the maybeCause. Compare its definition with that to toUnparseError:
>  
> {{def toParseError = new ParseError(schemaContext, dataContext, Maybe(this), maybeFormatString, args: _*)}}
> def toUnparseError = new UnparseError(schemaContext, dataContext, maybeCause, maybeFormatString, args: _*)
>  
> This is particuarly problamatic because ParseError requires one of the maybeFormatString and maybeCause may be defined. If maybeFormatString is defined, then they both would be within ParseError, so no useful error will be reported.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)