@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
18 lines • 495 B
JavaScript
import { __awaiter } from "tslib";
export function isError(e) {
const exception = e;
return !!exception.name && !!exception.message;
}
export function rethrowDecorator(func, beforeRethrow) {
const f = (...args) => __awaiter(this, void 0, void 0, function* () {
try {
return yield func(...args);
}
catch (e) {
yield beforeRethrow(e, ...args);
throw e;
}
});
return f;
}
//# sourceMappingURL=exceptions.js.map