@w5s/errorClassesAggregateErrorSur cette pageAggregateError <Errors>Alias to native globalThis.AggregateError@exampleimport { AggregateError } from '@w5s/error';try { throw new AggregateError([new Error("some error")], "Hello");} catch (e) { console.log(e instanceof AggregateError); // true console.log(e.message); // "Hello" console.log(e.name); // "AggregateError" console.log(e.errors); // [ Error: "some error" ]}HierarchyErrorAggregateErrorIndex ConstructorsconstructorPropertieserrorsnameConstructors constructornew AggregateError<Errors>(errors: Errors, message?: string): AggregateError<Errors>AggregateError constructorType parametersErrors: any[] | Iterable<any, any, any>Properties errorserrors: Errors extends any[] ? [...Errors<Errors>[]][] : Errors extends Iterable<T, any, any> ? T[] : neverArray of errornamename: AggregateError
Alias to native globalThis.AggregateError