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

Neo4jError

Extends:

Error → Neo4jError

Class for all errors thrown/returned by the driver.

Static Method Summary

Static Public Methods
public static

isRetriable(error: object | undefined | null): boolean

Verifies if the given error is retriable.

Constructor Summary

Public Constructor
public

constructor(message: string, code: string)

Member Summary

Public Members
public

code: *

public

name: string

public

retriable: boolean

Indicates if the error is retriable.

Static Public Methods

public static isRetriable(error: object | undefined | null): boolean source

Verifies if the given error is retriable.

Params:

NameTypeAttributeDescription
error object | undefined | null

the error object

Return:

boolean

true if the error is retriable

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 name: string source

public retriable: boolean source

Indicates if the error is retriable.