ladybird/Libraries/LibJS/Runtime/AggregateError.h

27 lines
505 B
C
Raw Normal View History

2021-06-11 17:06:20 +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
#include <LibJS/Runtime/Error.h>
2021-06-11 17:06:20 +00:00
#include <LibJS/Runtime/Object.h>
namespace JS {
class AggregateError : public Error {
JS_OBJECT(AggregateError, Error);
GC_DECLARE_ALLOCATOR(AggregateError);
2021-06-11 17:06:20 +00:00
public:
static GC::Ref<AggregateError> create(Realm&);
virtual ~AggregateError() override = default;
2021-06-11 17:06:20 +00:00
private:
2021-06-11 17:06:20 +00:00
explicit AggregateError(Object& prototype);
};
}