2022-12-06 01:10:01 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, David Tuin <davidot@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibJS/Runtime/Error.h>
|
|
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
|
|
|
class SuppressedError : public Error {
|
|
|
|
JS_OBJECT(SuppressedError, Error);
|
2024-11-14 15:01:23 +00:00
|
|
|
GC_DECLARE_ALLOCATOR(SuppressedError);
|
2022-12-06 01:10:01 +00:00
|
|
|
|
|
|
|
public:
|
2024-11-14 15:01:23 +00:00
|
|
|
static GC::Ref<SuppressedError> create(Realm&);
|
2022-12-06 01:10:01 +00:00
|
|
|
virtual ~SuppressedError() override = default;
|
|
|
|
|
|
|
|
private:
|
|
|
|
explicit SuppressedError(Object& prototype);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|