Bug 891986 - Keep the source ArrayBuffer to a decodeAudioData call alive until the...
[gecko.git] / dom / base / nsDOMException.h
blob2a612235d6322e1e9e6585d0cd49d94ad7e8b966
1 /* -*- Mode: IDL; tab-width: 2; 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 #include "nsCOMPtr.h"
7 #include "nsIException.h"
9 nsresult
10 NS_GetNameAndMessageForDOMNSResult(nsresult aNSResult, const char** aName,
11 const char** aMessage,
12 uint16_t* aCode = nullptr);
14 nsresult
15 NS_NewDOMException(nsresult aNSResult, nsIException* aDefaultException,
16 nsIException** aException);