rename to OError

This commit is contained in:
Tim Alby 2019-07-05 15:24:20 +02:00
parent 9c1b48a5e4
commit 76b13e7d35

View file

@ -22,7 +22,7 @@ var util = require('util')
*
* @extends Error
*/
class ErrorTypeError extends Error {
class OError extends Error {
/**
* @param {string} message as for built-in 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)
}
exports.Error = ErrorTypeError
exports.OError = OError
exports.getFullInfo = getFullInfo
exports.getFullStack = getFullStack
exports.hasCauseInstanceOf = hasCauseInstanceOf