tsoa
This commit is contained in:
18
node_modules/@hapi/hoek/lib/assertError.js
generated
vendored
Executable file
18
node_modules/@hapi/hoek/lib/assertError.js
generated
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
'use strict';
|
||||
|
||||
const internals = {};
|
||||
|
||||
|
||||
module.exports = class AssertError extends Error {
|
||||
|
||||
name = 'AssertError';
|
||||
|
||||
constructor(message, ctor) {
|
||||
|
||||
super(message || 'Unknown error');
|
||||
|
||||
if (typeof Error.captureStackTrace === 'function') { // $lab:coverage:ignore$
|
||||
Error.captureStackTrace(this, ctor);
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user