resource-watch/webshot

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

Summary

Maintainability
A
1 hr
Test Coverage
F
20%
class koaSend extends Error {

    constructor(message) {
        super();
        this.name = 'Koa Send';
        this.status = 400;
        this.message = message || 'Error sending screenshot.';
    }

}

module.exports = koaSend;