Appearance
Documentation / core / BrowserStackError
Class: BrowserStackError
Defined in: packages/core/src/error.ts:11
Internal
BrowserStackError represents an error returned from a BrowserStack Client.
Extends
Error
Constructors
Constructor
new BrowserStackError(
message,context?):BrowserStackError
Defined in: packages/core/src/error.ts:15
Parameters
| Parameter | Type |
|---|---|
message | string |
context? | ErrorContext | Error |
Returns
BrowserStackError
Overrides
Error.constructor
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
code? | string | - | - | packages/core/src/error.ts:12 |
context? | ErrorContext | Error | - | - | packages/core/src/error.ts:13 |
message | string | - | Error.message | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075 |
name | string | - | Error.name | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074 |
stack? | string | - | Error.stack | node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076 |
prepareStackTrace? | (err, stackTraces) => any | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces | Error.prepareStackTrace | node_modules/.pnpm/@types+node@20.0.0/node_modules/@types/node/globals.d.ts:11 |
stackTraceLimit | number | - | Error.stackTraceLimit | node_modules/.pnpm/@types+node@20.0.0/node_modules/@types/node/globals.d.ts:13 |
Methods
captureStackTrace()
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/.pnpm/@types+node@20.0.0/node_modules/@types/node/globals.d.ts:4
Create .stack property on a target object
Parameters
| Parameter | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace