AlkantarClanX12

Your IP : 3.138.105.4


Current Path : /proc/self/root/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules/gauge/
Upload File :
Current File : //proc/self/root/opt/alt/alt-nodejs11/root/usr/lib/node_modules/npm/node_modules/gauge/error.js

'use strict'
var util = require('util')

var User = exports.User = function User (msg) {
  var err = new Error(msg)
  Error.captureStackTrace(err, User)
  err.code = 'EGAUGE'
  return err
}

exports.MissingTemplateValue = function MissingTemplateValue (item, values) {
  var err = new User(util.format('Missing template value "%s"', item.type))
  Error.captureStackTrace(err, MissingTemplateValue)
  err.template = item
  err.values = values
  return err
}

exports.Internal = function Internal (msg) {
  var err = new Error(msg)
  Error.captureStackTrace(err, Internal)
  err.code = 'EGAUGEINTERNAL'
  return err
}