resource-watch/webshot

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

Summary

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

    constructor(message) {
        super();
        this.name = 'WebshotNotFound';
        this.status = 404;
        this.message = message || 'URL not found.';
    }

}

module.exports = WebshotNotFound;