Hierarchy

Constructors

Properties

causes?: string[]
errorName: string = 'Duplicate'
httpStatus: number = 409
isDfnsError: boolean = true
message: string
name: string = 'DuplicateError'
serviceName: string
shouldTriggerInvestigation: boolean = false
shouldTriggerInvestigaton: boolean
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Returns {
        causes: undefined | string[];
        errorName: string;
        httpStatus: number;
        message: string;
        name: string;
        serviceName: string;
        shouldTriggerInvestigation: boolean;
        stackTrace: string;
    }

    • causes: undefined | string[]
    • errorName: string
    • httpStatus: number
    • message: string
    • name: string
    • serviceName: string
    • shouldTriggerInvestigation: boolean
    • stackTrace: string
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc