Skip to content

InvalidConcurrencyPoolSizeException ​

Class

Gets thrown when trying to create a ConcurrencyPool with anything smaller than 1. An empty or negative sized pool does not make any sense.

Source: packages/concurrency-utils/src/lib/concurrency-pool.ts:34

Hierarchy ​

  • Error.InvalidConcurrencyPoolSizeException

Constructors ​

constructor() ​

new InvalidConcurrencyPoolSizeException(size: number): InvalidConcurrencyPoolSizeException

Source: packages/concurrency-utils/src/lib/concurrency-pool.ts:35

Parameters ​

ParameterType
sizenumber

Returns ​

InvalidConcurrencyPoolSizeException

Overrides ​

Error.constructor

Properties ​

prepareStackTrace ​

prepareStackTrace?: Function

Source: node_modules/@types/node/globals.d.ts:28

Type declaration (prepareStackTrace) ​

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

Optional override for formatting stack traces

See ​

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

Source: node_modules/@types/node/globals.d.ts:28

Parameters ​
ParameterType
errError
stackTracesCallSite[]
Returns ​

any

Inherited from ​

Error.prepareStackTrace

stackTraceLimit ​

static stackTraceLimit: number

Source: node_modules/@types/node/globals.d.ts:30

Inherited from ​

Error.stackTraceLimit

name ​

name: string

Source: node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

Error.name

message ​

message: string

Source: node_modules/typescript/lib/lib.es5.d.ts:1077

Inherited from ​

Error.message

stack ​

stack?: string

Source: node_modules/typescript/lib/lib.es5.d.ts:1078

Inherited from ​

Error.stack

Methods ​

captureStackTrace() ​

Static captureStackTrace(targetObject: object, constructorOpt?: Function): void

Create .stack property on a target object

Source: node_modules/@types/node/globals.d.ts:21

Parameters ​

ParameterType
targetObjectobject
constructorOpt?Function

Returns ​

void

Inherited from ​

Error.captureStackTrace