Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2100

Error handling some parseErrors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • Back End
    • None

    Description

      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.

      Attachments

        Activity

          People

            dfthompson Dave Thompson
            brandon.sloane Brandon Sloane
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: