{"size": 511, "ext": "js", "max_stars_repo_path": "src/api/announce/error.js", "max_stars_repo_name": "xanimo/dogecoin-spv-node-middleware", "max_stars_repo_stars_event_min_datetime": "2022-01-13T07:43:18.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-13T07:43:18.000Z", "max_issues_repo_path": "src/api/announce/error.js", "max_issues_repo_name": "xanimo/dogecoin-spv-node-middleware", "max_issues_repo_issues_event_min_datetime": "2021-11-14T23:05:41.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-30T17:05:59.000Z", "max_forks_repo_path": "src/api/announce/error.js", "max_forks_repo_name": "xanimo/dogecoin-spv-node-middleware", "max_forks_repo_forks_event_min_datetime": "2021-11-23T12:45:43.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-23T12:45:43.000Z"}
{"max_stars_count": 1, "max_issues_count": 6, "max_forks_count": 1, "avg_line_length": 20.44, "max_line_length": 66, "alphanum_fraction": 0.7084148728}
/*
    Announce Message Errors classes
*/

class OurKeyNotInMultisigError extends Error {
  constructor () {
    super('Payee public key must be part of the multisig clause.')
    this.name = 'OurKeyNotInMultisigError'
    this.status = 400
  }
}

class BadLocktimeError extends Error {
  constructor (minLocktime) {
    super(`Locktime needs to be greater than ${minLocktime}`)
    this.name = 'BadLocktimeError'
    this.status = 400
  }
}

module.exports = {
  OurKeyNotInMultisigError,
  BadLocktimeError
}
