Skip to main content
Version: 5.9

ServerException

Base class for all server related errors detected in the driver.

Hierarchy

  • DriverException
    • ServerException
      • ConstraintViolationException
      • DatabaseObjectExistsException
      • DatabaseObjectNotFoundException
      • DeadlockException
      • InvalidFieldNameException
      • LockWaitTimeoutException
      • NonUniqueFieldNameException
      • ReadOnlyException
      • SyntaxErrorException

Index

Constructors

constructor

  • new ServerException(previous: Error): ServerException
  • Parameters

    • previous: Error

    Returns ServerException

Properties

optionalcode

code?: string

optionalerrmsg

errmsg?: string

optionalerrno

errno?: number

message

message: string

name

name: string

optionalsqlMessage

sqlMessage?: string

optionalsqlState

sqlState?: string

optionalstack

stack?: string

staticoptionalprepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

staticstackTraceLimit

stackTraceLimit: number

Methods

staticcaptureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object


    Parameters

    • targetObject: object
    • optionalconstructorOpt: Function

    Returns void