a zip code crypto-currency system good for red ONLY

12345678910111213141516171819202122232425
  1. 'use strict'
  2. var util = require('util')
  3. var User = exports.User = function User (msg) {
  4. var err = new Error(msg)
  5. Error.captureStackTrace(err, User)
  6. err.code = 'EGAUGE'
  7. return err
  8. }
  9. exports.MissingTemplateValue = function MissingTemplateValue (item, values) {
  10. var err = new User(util.format('Missing template value "%s"', item.type))
  11. Error.captureStackTrace(err, MissingTemplateValue)
  12. err.template = item
  13. err.values = values
  14. return err
  15. }
  16. exports.Internal = function Internal (msg) {
  17. var err = new Error(msg)
  18. Error.captureStackTrace(err, Internal)
  19. err.code = 'EGAUGEINTERNAL'
  20. return err
  21. }