Skip to content

True Myth / task / AggregateRejection

Class: AggregateRejection<E>

An error type produced when any produces any rejections. All rejections are aggregated into this type.

NOTE

This error type is not allowed to be subclassed.

Extends

  • Error

Type Parameters

E

E extends unknown[]

The type of the rejection reasons.

Constructors

Constructor

new AggregateRejection<E>(errors): AggregateRejection<E>

Parameters

errors

E

Returns

AggregateRejection<E>

Overrides

Error.constructor

Properties

cause?

optional cause: unknown

Inherited from

Error.cause


errors

readonly errors: E


message

message: string

Inherited from

Error.message


name

readonly name: "AggregateRejection" = 'AggregateRejection'

Overrides

Error.name


stack?

optional stack: string

Inherited from

Error.stack

Methods

toString()

toString(): string

Returns a string representation of an object.

Returns

string