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: '',
}

Readme

Keywords

Package Sidebar

Install

npm i exception_manager

Weekly Downloads

13

Version

1.1.4

License

ISC

Unpacked Size

2.98 kB

Total Files

4

Last publish

Collaborators

  • pironp