@xmpp/error
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/xmpp__error package

0.13.1 • Public • Published

error

XMPP error abstraction for JavaScript.

Install

npm install @xmpp/error

Usage

const XMPPError = require("@xmpp/error");

const error = new XMPPError("service-unavailable", "optional text", element);
error instanceof Error; // true
error.condition === "service-unavailable"; // true
error.text === "service-unavailabe - optional text"; // true
error.element === element; // true

/@xmpp/error/

    Package Sidebar

    Install

    npm i @xmpp/error

    Weekly Downloads

    3,556

    Version

    0.13.1

    License

    ISC

    Unpacked Size

    1.64 kB

    Total Files

    3

    Last publish

    Collaborators

    • sonny