neo4j
library.Serializable::inspect
to show more useful information
serialization :: serialization_core
Abstract services to serialize Nit objects to different formatsdeserialize_json
and JsonDeserializer
serialize_to_json
and JsonSerializer
core :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Errors thrown by the `neo4j` library.
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 == """{"message":"ErrorMessage","cause":null,"error":"ErrorName"}"""
class NeoError
super Error
serialize
# The name of the error.
#
# Used to programmatically distinguish this kind of error from others.
var name: String is serialize_as "error"
redef fun to_s do return "[{name}] {super}"
end
lib/neo4j/error.nit:11,1--31,3