victor-am/rails-ranger

View on GitHub
src/exceptions.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class MissingRequiredParameterError extends Error {
  constructor(parameter) {
    const message = `[Rails Ranger] The required parameter "${parameter}" was missing from the request.`
    super(message)

    this.name = 'MissingRequiredParameterError'
  }
}
export { MissingRequiredParameterError }