UNPKG

proton-quark-error

Version:

Load error defined and use them with proton microframework

23 lines (20 loc) 642 B
module.exports = { HireError: taskHireError, UserError: taskUserError } function taskHireError({ body, params, query }) { console.log(this.standarError); // console.error(`HireError // Body ${JSON.stringify(body)} // Params ${JSON.stringify(params)} // Query ${JSON.stringify(query)} // Error ${JSON.stringify(this.standarError)}`) } function taskUserError({ body, params, query }) { console.log(this.standarError); // console.error(`UserError // Body ${JSON.stringify(body)} // Params ${JSON.stringify(params)} // Query ${JSON.stringify(query)} // Error ${JSON.stringify(this.standarError)}`) }