Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2853

Gremlin.Net driver should throw better exception message for unsupported GraphBinary type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6.1, 3.5.4
    • 3.7.0, 3.5.6, 3.6.4
    • dotnet
    • None

    Description

      The driver currently throws an exception that isn't very telling:

      System.Collections.Generic.KeyNotFoundException : The given key 'janusgraph.RelationIdentifier' was not present in the dictionary. 

      It would be good if it would instead clearly state that no serializer was found for the GraphBinary type. This was first reported on the janusgraph-users list.

      The exception gets thrown here for types received from the server where no serializer is registered for the driver.

      For the write path however, the exception thrown is already more telling.

      Attachments

        Activity

          People

            xiazcy Yang Xia
            Florian Hockmann Florian Hockmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: