Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1821

isError returns false even when there are validation errors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocking
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: API
    • Labels:
      None

      Description

      Currently, ParseResult#isError only returns true if there are parse errors. If there are validation errors, it will return false. This is incorrect. Instead, isError should return true if there are either parse errors or validation errors. Furthermore, we should add new API functions (e.g. isParseError, isUnparseError, isValidationError) that can be used to determine specifically what kind of error occurred if the user only caresĀ about one type of error (e.g. validation vs parse errors).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jadams Joshua Adams
                Reporter:
                slawrence Steve Lawrence
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Tasks