LimePot
76722fec47
Going to slowly work on a Bulma site, which will end up being the main site. Currently under the /BETA/ folder so Alpha site will still be main site.
24 lines
616 B
JavaScript
24 lines
616 B
JavaScript
'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
|
|
}
|