Comparing version 0.0.5 to 0.0.6
@@ -601,2 +601,16 @@ 'use strict'; | ||
/** | ||
* Create a new internal (500) error | ||
* @param {string} [message] - Override the existing error message if provided | ||
* @param {string} [name] - A unique name for the error. If not provided the default name for the status code will be used. | ||
* @param {Object} [data] - Extra data to add to the error | ||
* @return {GromitError} - A new GromitError | ||
*/ | ||
}, { | ||
key: 'internal', | ||
value: function internal(message, name, data) { | ||
return GromitError.create(500, message, name, data); | ||
} | ||
/** | ||
* Create a new notImplemented (501) error | ||
@@ -603,0 +617,0 @@ * @param {string} [message] - Override the existing error message if provided |
@@ -7,3 +7,3 @@ { | ||
"name": "gromit", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -10,0 +10,0 @@ "license": "UNLICENSED", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97309
1113