Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new UniqueError(message: string, model: string, fields: string[], whereOpts: WhereOptions<any>, code?: string): UniqueError

Properties

code: string = "unique violation"
errors?: GrouparooError[]
fields: string[]
message: string
model: string
name: string
sql?: string
stack?: string
type?: string
whereOpts: WhereOptions<any>
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • serialize(): Record<string, string>
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc