Currently, to raise a module specific exception, a work-around like this is used heavily:
var my_exc = _(norne.exc.raise).partial('my_module_name');
This is not acceptable since most of the time it is the only reason to encapsulate the whole module into an iife and also a bit hacky. It would be nice to make util.exc work like util.evt:
define('my_module').uses('util.exc').as({
doSomething: function () {
this.raise('my message to describe the problem');
}
});
Dependencies:
util.obj must remember the objects name.
Currently, to raise a module specific exception, a work-around like this is used heavily:
This is not acceptable since most of the time it is the only reason to encapsulate the whole module into an iife and also a bit hacky. It would be nice to make util.exc work like util.evt:
Dependencies: util.obj must remember the objects name.