Skip to main content

ExperimentalError

class ExperimentalError extends DetailedError

Constructors

constructor

public override new ExperimentalErrormessage: stringremarks?: string: ExperimentalError
public override new ExperimentalErrorprops: ExperimentalErrorProps: ExperimentalError

Parameters

Overwrites DetailedError.constructor

Properties

durationMs

readonly public durationMs?: number

An optional duration in milliseconds.

Can be used to display any duration related to the log. The value is always visible next to the message.

Inherited from DetailedError.durationMs

inspect

readonly public inspect?: string

An optional key used to inspect a related object.

This will be used together with the Inspectable interface to display additional information about the inspected object. When specified, the log will have an "inspect" button that will open the "Properties" tab and select the inspected object.

Inherited from DetailedError.inspect

message

message: string
Inherited from DetailedError.message

name

name: string
Inherited from DetailedError.name

object

readonly public object?: any

An object that will be serialized as JSON and displayed under the message.

Visible only when the log is expanded.

Inherited from DetailedError.object

remarks

readonly public remarks?: string

The main message of the log.

Always visible.

Inherited from DetailedError.remarks

stack

stack?: string
Inherited from DetailedError.stack

prepareStackTrace

static prepareStackTrace?: err: ErrorstackTraces: CallSite[] => any
Inherited from DetailedError.prepareStackTrace

stackTraceLimit

static stackTraceLimit: number
Inherited from DetailedError.stackTraceLimit

Methods

captureStackTrace

static public captureStackTracetargetObject: objectconstructorOpt?: Function: void

Create .stack property on a target object

Parameters

Inherited from DetailedError.captureStackTrace