model: bring back call site doc to highlight as `CallSite::mdoc_or_fallback`
[nit.git] / lib / neo4j / error.nit
index d568f45..58068ad 100644 (file)
 module neo4j::error
 
 import json::static
+import json
 
 # An error thrown by the `neo4j` API.
 #
 #     var error = new NeoError("ErrorMessage", "ErrorName")
-#     assert error.to_json == "\{\"error\":\"ErrorName\",\"message\":\"ErrorMessage\"\}"
+#     assert error.to_json == """{"message":"ErrorMessage","cause":null,"error":"ErrorName"}"""
 class NeoError
        super Error
        super Jsonable