2021-06-11 18:06:20 +01:00
|
|
|
/*
|
2022-12-13 20:49:49 +00:00
|
|
|
* Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
|
2021-06-11 18:06:20 +01:00
|
|
|
*
|
|
|
|
* 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-12-13 20:49:49 +00:00
|
|
|
static NonnullGCPtr<AggregateError> create(Realm&);
|
2022-08-28 23:51:28 +02:00
|
|
|
virtual ~AggregateError() override = default;
|
2021-06-11 18:06:20 +01:00
|
|
|
|
2022-08-28 23:51:28 +02:00
|
|
|
private:
|
2021-06-11 18:06:20 +01:00
|
|
|
explicit AggregateError(Object& prototype);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|