1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef GPU_InternalError_H_
7 #define GPU_InternalError_H_
18 class InternalError final
: public Error
{
20 GPU_DECL_JS_WRAP(InternalError
)
22 InternalError(nsIGlobalObject
* const aGlobal
, const nsAString
& aMessage
)
23 : Error(aGlobal
, aMessage
) {}
25 InternalError(nsIGlobalObject
* const aGlobal
, const nsACString
& aMessage
)
26 : Error(aGlobal
, aMessage
) {}
29 ~InternalError() override
= default;
32 static already_AddRefed
<InternalError
> Constructor(
33 const dom::GlobalObject
& aGlobal
, const nsAString
& aString
,
38 } // namespace mozilla
40 #endif // GPU_InternalError_H_