[
https://issues.apache.org/jira/browse/DAFFODIL-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Lawrence updated DAFFODIL-2100:
-------------------------------------
Fix Version/s: 2.4.0
> 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
(v7.6.3#76005)