manual: CI check with nitunit
[nit.git] / lib / neo4j / error.nit
index d568f45..140606c 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
        serialize
 
        # The name of the error.