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.
19 lines
422 B
19 lines
422 B
"use strict"; |
|
var errorObject_1 = require('./errorObject'); |
|
var tryCatchTarget; |
|
function tryCatcher() { |
|
try { |
|
return tryCatchTarget.apply(this, arguments); |
|
} |
|
catch (e) { |
|
errorObject_1.errorObject.e = e; |
|
return errorObject_1.errorObject; |
|
} |
|
} |
|
function tryCatch(fn) { |
|
tryCatchTarget = fn; |
|
return tryCatcher; |
|
} |
|
exports.tryCatch = tryCatch; |
|
; |
|
//# sourceMappingURL=tryCatch.js.map
|