mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
LibJS: Implement AggregateError
This commit is contained in:
parent
2f03eb8628
commit
cbd7437d40
13 changed files with 301 additions and 15 deletions
23
Userland/Libraries/LibJS/Runtime/AggregateError.h
Normal file
23
Userland/Libraries/LibJS/Runtime/AggregateError.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
class AggregateError : public Object {
|
||||
JS_OBJECT(Error, Object);
|
||||
|
||||
public:
|
||||
static AggregateError* create(GlobalObject&, String const& message, Vector<Value> const& errors);
|
||||
|
||||
explicit AggregateError(Object& prototype);
|
||||
virtual ~AggregateError() override = default;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue