PlayerError extends Error
new PlayerError(message, code)| Parameter | Type | Optional | Description |
|---|---|---|---|
| message | string | ❌ | - |
| code | ErrorStatusCode | ❌ | - |
Properties
public createdAt: Date
public message: string
public name: string
- Source:
node_modules/typescript/lib/lib.es5.d.ts#L1053
public stack: string
- Source:
node_modules/typescript/lib/lib.es5.d.ts#L1055
public statusCode: ErrorStatusCode
public static prepareStackTrace: (err: Error, stackTraces: Array<CallSite>) => any
- Source:
node_modules/@types/node/globals.d.ts#L11
public static stackTraceLimit: number
- Source:
node_modules/@types/node/globals.d.ts#L13
public createdTimestamp: number
Methods
public toJSON(): { code: ErrorStatusCode,created: number,message: string,stack: undefined | string }
public toString(): undefined | string
public valueOf(): ErrorStatusCode
public static captureStackTrace(targetObject, constructorOpt?): void
Create .stack property on a target object
| Parameter | Type | Optional | Description |
|---|---|---|---|
| targetObject | object | ❌ | - |
| constructorOpt | Function | ✅ | - |
- Source:
node_modules/@types/node/globals.d.ts#L4
Last updated on