mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-22 18:53:14 +00:00
20 lines
489 B
JavaScript
20 lines
489 B
JavaScript
/*\
|
|
title: $:/core/modules/utils/errors.js
|
|
type: application/javascript
|
|
module-type: utils
|
|
|
|
Custom errors for TiddlyWiki.
|
|
|
|
\*/
|
|
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;
|