git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
6e9c872
Branches
Tags
develop-client_server
master
typescript
fs-words.git
server
lib
node_modules
gauge
error.js
[add] server:lib:node_modules
Christian Fraß
commited
6e9c872
at 2021-03-08 23:52:07
error.js
Blame
History
Raw
'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 }