ForestAdmin/toolbelt

View on GitHub
src/errors/application-error.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class ApplicationError extends Error {
  constructor(message) {
    super(message);
    this.name = 'ApplicationError';
    Error.captureStackTrace(this, ApplicationError);
  }
}

module.exports = ApplicationError;