All files / src/tools validationError.ts

100% Statements 9/9
50% Branches 1/2
100% Functions 1/1
100% Lines 9/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  18x 18x 18x   18x 18x 18x     1x 1x   1x  
function ValidationError(message: string) {
  Error.call(this, message);
  Eif (process.env.NODE_ENV !== 'production') {
    Error.captureStackTrace(this, this.constructor);
  }
  this.name = 'ValidationError';
  this.message = message;
  this.status = 400;
}
 
ValidationError.prototype = Object.create(Error.prototype);
ValidationError.prototype.constructor = ValidationError;
 
export default ValidationError;