mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
rename to OError
This commit is contained in:
parent
9c1b48a5e4
commit
76b13e7d35
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ var util = require('util')
|
||||||
*
|
*
|
||||||
* @extends Error
|
* @extends Error
|
||||||
*/
|
*/
|
||||||
class ErrorTypeError extends Error {
|
class OError extends Error {
|
||||||
/**
|
/**
|
||||||
* @param {string} message as for built-in Error
|
* @param {string} message as for built-in Error
|
||||||
* @param {?object} info extra data to attach to the error
|
* @param {?object} info extra data to attach to the error
|
||||||
|
@ -92,7 +92,7 @@ function hasCauseInstanceOf (error, klass) {
|
||||||
return error instanceof klass || hasCauseInstanceOf(error.cause, klass)
|
return error instanceof klass || hasCauseInstanceOf(error.cause, klass)
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Error = ErrorTypeError
|
exports.OError = OError
|
||||||
exports.getFullInfo = getFullInfo
|
exports.getFullInfo = getFullInfo
|
||||||
exports.getFullStack = getFullStack
|
exports.getFullStack = getFullStack
|
||||||
exports.hasCauseInstanceOf = hasCauseInstanceOf
|
exports.hasCauseInstanceOf = hasCauseInstanceOf
|
||||||
|
|
Loading…
Reference in a new issue