exception_manager

Exception Manager ========

Usage no npm install needed!

<script type="module">
  import exceptionManager from 'https://cdn.skypack.dev/exception_manager';
</script>

README

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