2021-06-11 18:06:20 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-06-23 13:59:17 +01:00
|
|
|
#include <LibJS/Runtime/Error.h>
|
2021-06-11 18:06:20 +01:00
|
|
|
#include <LibJS/Runtime/Object.h>
|
|
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
2021-06-23 13:59:17 +01:00
|
|
|
class AggregateError : public Error {
|
|
|
|
JS_OBJECT(AggregateError, Error);
|
2021-06-11 18:06:20 +01:00
|
|
|
|
|
|
|
public:
|
2022-08-16 00:20:49 +01:00
|
|
|
static AggregateError* create(Realm&);
|
2021-06-11 18:06:20 +01:00
|
|
|
|
|
|
|
explicit AggregateError(Object& prototype);
|
|
|
|
virtual ~AggregateError() override = default;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|