DCL

An elegant OOP with mixins + AOP for JavaScript.

dclDebug.SetChainingError

Version 1.x

dclDebug.SetChainingError is present only when dcl/debug is required. It is thrown when setting different chaining for the same method.

Examples

Setting conflicting chaining
1
2
3
4
5
6
7
8
9
10
var dcl = require("dcl"),
  dclDebug = require("dcl/debug");

var A = dcl(null, {
  declaredClass: "A"
});
dcl.chainAfter(A, "m");
dcl.chainBefore(A, "m");

// At this point dclError.SetChainingError will be thrown.

You will see the following exception:

1
2
dcl: attempt to set conflicting chain directives in: A, method: m -
it was CHAINED AFTER yet being changed to CHAINED BEFORE