Home Reference Source
import {Neo4jError} from 'neo4j-driver/lib/v1/error.js'
public class | source

Neo4jError

Extends:

Error → Neo4jError

Class for all errors thrown/returned by the driver.

Constructor Summary

Public Constructor
public

constructor(message: string, code: string)

Member Summary

Public Members
public

code: *

public

message: *

public

name: string

Public Constructors

public constructor(message: string, code: string) source

Params:

NameTypeAttributeDescription
message string

The error message.

code string

Optional error code. Will be populated when error originates in the database.

Public Members

public code: * source

public message: * source

public name: string source