DCL

An elegant OOP with mixins + AOP for JavaScript.

dclDebug.DclError

dclDebug.DclError serves as a base class for all other exceptions thrown by dcl. It can be used to identify dcl-produced errors.

Examples

dclDebug.DclError
1
2
3
4
5
6
7
8
9
var dclDebug = require("dcl/debug");

try{
  // ... dcl-related code
}catch(e){
  if(e instanceof dclDebug.DclError){
    // special treatment
  }
}

Other exceptions are based on it:

Fork me on GitHub