Hierarchy

Constructors

Properties

causes?: string[] = []
errorName: string = ''
httpStatus: number = 500
isDfnsError: boolean = true
message: string
name: string = 'DfnsError'
serviceName: string = 'SERVICE_NOT_DEFINED'
shouldTriggerInvestigation: boolean = false
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