X-Git-Url: http://nitlanguage.org?ds=sidebyside diff --git a/lib/neo4j/error.nit b/lib/neo4j/error.nit index d568f45..140606c 100644 --- a/lib/neo4j/error.nit +++ b/lib/neo4j/error.nit @@ -12,14 +12,14 @@ 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.