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