Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / webidl / TCPSocketErrorEvent.webidl
blob2a530c352ecbe69ea3c71718ad36b32997a26bfe
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 /* Dispatched as part of the "error" event in the following situations:
7 * - if there's an error detected when the TCPSocket closes
8 * - if there's an internal error while sending data
9 * - if there's an error connecting to the host
12 [Func="mozilla::dom::TCPSocket::ShouldTCPSocketExist",
13  Exposed=Window]
14 interface TCPSocketErrorEvent : Event {
15   constructor(DOMString type,
16               optional TCPSocketErrorEventInit eventInitDict = {});
18   readonly attribute DOMString name;
19   readonly attribute DOMString message;
20   readonly attribute unsigned long errorCode; // The internal nsresult error code.
23 dictionary TCPSocketErrorEventInit : EventInit
25   DOMString name = "";
26   DOMString message = "";
27   unsigned long errorCode = 0;