nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
manual: CI check with nitunit
[nit.git]
/
lib
/
neo4j
/
error.nit
diff --git
a/lib/neo4j/error.nit
b/lib/neo4j/error.nit
index
d568f45
..
140606c
100644
(file)
--- a/
lib/neo4j/error.nit
+++ b/
lib/neo4j/error.nit
@@
-12,14
+12,14
@@
module neo4j::error
import json::static
module neo4j::error
import json::static
+import json
# An error thrown by the `neo4j` API.
#
# var error = new NeoError("ErrorMessage", "ErrorName")
# 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
class NeoError
super Error
- super Jsonable
serialize
# The name of the error.
serialize
# The name of the error.