TiddlyWiki5/core/modules/utils/errors.js
Cameron Fischer 19a39f231c the TransclusionError is a proper error
Moved the magic number to be on the error's class. Not sure if that's
a great idea.
2023-12-11 22:14:24 -05:00

23 lines
510 B
JavaScript

/*\
title: $:/core/modules/utils/errors.js
type: application/javascript
module-type: utils
Custom errors for TiddlyWiki.
\*/
(function(){
function TranscludeRecursionError() {
Error.apply(this,arguments);
this.signatures = Object.create(null);
};
/* Maximum permitted depth of the widget tree for recursion detection */
TranscludeRecursionError.MAX_WIDGET_TREE_DEPTH = 1000;
TranscludeRecursionError.prototype = Object.create(Error);
exports.TranscludeRecursionError = TranscludeRecursionError;
})();