mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 07:14:50 +00:00
24 lines
510 B
JavaScript
24 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;
|
||
|
|
||
|
})();
|