AggregateError.h 505 B

1234567891011121314151617181920212223242526
  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. GC_DECLARE_ALLOCATOR(AggregateError);
  13. public:
  14. static GC::Ref<AggregateError> create(Realm&);
  15. virtual ~AggregateError() override = default;
  16. private:
  17. explicit AggregateError(Object& prototype);
  18. };
  19. }