mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 18:51:17 +00:00
10 lines
260 B
CoffeeScript
10 lines
260 B
CoffeeScript
CodedError = (message, code) ->
|
|
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: CodedError
|