Package Exports
- @xmpp/error
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@xmpp/error) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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