@hallparty/xmpp-error

0.12.0 • Public • Published

error

XMPP error abstraction for JavaScript.

Install

npm install @hallparty/xmpp-error or yarn add @hallparty/xmpp-error

Usage

const XMPPError = require("@hallparty/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

Readme

Keywords

Package Sidebar

Install

npm i @hallparty/xmpp-error

Weekly Downloads

1

Version

0.12.0

License

ISC

Unpacked Size

1.73 kB

Total Files

3

Last publish

Collaborators

  • hallparty