exception_manager

1.1.4 • Public • Published

Exception Manager

An error manager, it send a json with details about the error, the computer and the actual page to a server

Installation

Installation with npm.

npm install --save exception_manager

Usage

let exception_manager 	= require('exception_manager');

exception_manager.handleException(error, 'Application Name', 'fileName.js', 10, 'username', window, 'serverAddress');

exports.handleException = (error, appName, fileName, lineNumber, username, window, server)

API

handleException(error, appName, fileName, lineNumber, username, window, server)

Send a json to a server:

{
  error: '',
  site: '',
  fileName: '',
  lineNumber: '',
  navigator: '',
  url: '',
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.4
    0
    • latest

Version History

Package Sidebar

Install

npm i exception_manager

Weekly Downloads

0

Version

1.1.4

License

ISC

Unpacked Size

2.98 kB

Total Files

4

Last publish

Collaborators

  • pironp