AggregateError.h 468 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2021-2022, Linus Groh <linusg@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibJS/Runtime/Error.h>
  8. #include <LibJS/Runtime/Object.h>
  9. namespace JS {
  10. class AggregateError : public Error {
  11. JS_OBJECT(AggregateError, Error);
  12. public:
  13. static NonnullGCPtr<AggregateError> create(Realm&);
  14. virtual ~AggregateError() override = default;
  15. private:
  16. explicit AggregateError(Object& prototype);
  17. };
  18. }