yoastseo-dep
Version:
Yoast clientside page analysis
20 lines (16 loc) • 419 B
JavaScript
import "error-polyfill";
import util from "util";
/**
* Throws an invalid type error
*
* @param {string} message The message to show when the error is thrown
*
* @returns {void}
*/
function InvalidTypeError( message ) {
Error.captureStackTrace( this, this.constructor );
this.name = this.constructor.name;
this.message = message;
}
util.inherits( InvalidTypeError, Error );
export default InvalidTypeError;