AggregateError.h 448 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2021, 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 AggregateError* create(GlobalObject&);
  14. explicit AggregateError(Object& prototype);
  15. virtual ~AggregateError() override = default;
  16. };
  17. }