Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tryCatch.js 484B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var errorObject_1 = require("./errorObject");
  4. var tryCatchTarget;
  5. function tryCatcher() {
  6. try {
  7. return tryCatchTarget.apply(this, arguments);
  8. }
  9. catch (e) {
  10. errorObject_1.errorObject.e = e;
  11. return errorObject_1.errorObject;
  12. }
  13. }
  14. function tryCatch(fn) {
  15. tryCatchTarget = fn;
  16. return tryCatcher;
  17. }
  18. exports.tryCatch = tryCatch;
  19. //# sourceMappingURL=tryCatch.js.map