Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AldCompleteError

Node FaaS 阿拉丁补全失败

example

创建异常

const error = new AldCompleteError('Ald Complete Error', {
  data: {
    // 调用补全的参数可以写在这里,辅助排查问题
  },
  cause, // 原始异常
});
param

异常描述,字符串

param

异常附加信息

returns

AldCompleteError instance

Hierarchy

Index

Constructors

constructor

1.0.5 provide

Properties

cause

1.0.5 provide
cause: undefined | Error = ...

message

1.0.5 provide
message: string

name

1.0.5 provide
name: string

Optional stack

1.0.5 provide
stack: string

Static description

1.0.5 provide
description: string = '阿拉丁补全失败'

Static Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

1.0.5 provide
stackTraceLimit: number

Methods

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void