Brandon Sloane created DAFFODIL-2100:
----------------------------------------
Summary: 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: Brandon Sloane
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)