mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-30 21:50:47 +00:00
17 lines
439 B
JavaScript
17 lines
439 B
JavaScript
/* eslint-disable
|
|
no-proto,
|
|
no-unused-vars,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
let Errors
|
|
var CodedError = function (message, code) {
|
|
const error = new Error(message)
|
|
error.name = 'CodedError'
|
|
error.code = code
|
|
error.__proto__ = CodedError.prototype
|
|
return error
|
|
}
|
|
CodedError.prototype.__proto__ = Error.prototype
|
|
|
|
module.exports = Errors = { CodedError }
|