UNPKG

@aappddeevv/dynamics-client-ui

Version:

## What is it? A library to help you create great dynamics applications.

15 lines 599 B
"use strict"; /** * Simple error handler for the library. Errors are printed to the console. * This should not be used as a logging solution but just a common handler * method that can be improved later e.g. report the error back to a developer. */ Object.defineProperty(exports, "__esModule", { value: true }); /** Simple error handler that just prints out to the console. */ class ConsoleErrorHandler { report(e) { console.log(`Error: ${e.context}: ${e.message}`, e.error, e.data); } } exports.ConsoleErrorHandler = ConsoleErrorHandler; //# sourceMappingURL=ErrorHandler.js.map