resource-watch/webshot

View on GitHub
app/src/errors/webshotURL.error.js

Summary

Maintainability
A
1 hr
Test Coverage
A
100%
class WebshotURL extends Error {

    constructor(message) {
        super();
        this.name = 'WebshotURL';
        this.status = 400;
        this.message = message || 'Error taking screenshot for widget.';
    }

}

module.exports = WebshotURL;