Sha256: e35fe68460137b8ed6e71177c220ae4fb45bb15177a307da24b89bb322c29977
Contents?: true
Size: 952 Bytes
Versions: 134
Compression:
Stored size: 952 Bytes
Contents
/*! * Stylus - errors * Copyright(c) 2010 LearnBoost <dev@learnboost.com> * MIT Licensed */ /** * Expose constructors. */ exports.ParseError = ParseError; exports.SyntaxError = SyntaxError; /** * Inherit from `Error.prototype`. */ SyntaxError.prototype.__proto__ = Error.prototype; /** * Initialize a new `ParseError` with the given `msg`. * * @param {String} msg * @api private */ function ParseError(msg) { this.name = 'ParseError'; this.message = msg; Error.captureStackTrace(this, ParseError); } /** * Inherit from `Error.prototype`. */ ParseError.prototype.__proto__ = Error.prototype; /** * Initialize a new `SyntaxError` with the given `msg`. * * @param {String} msg * @api private */ function SyntaxError(msg) { this.name = 'SyntaxError'; this.message = msg; Error.captureStackTrace(this, ParseError); } /** * Inherit from `Error.prototype`. */ SyntaxError.prototype.__proto__ = Error.prototype;
Version data entries
134 entries across 87 versions & 2 rubygems