Created
September 21, 2012 23:11
-
-
Save DazWilkin/3764445 to your computer and use it in GitHub Desktop.
Simple error handler that extends the wrapper for Table bindings in JavaScript API for Office
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error = (function () { | |
function Error(nameTable) { | |
this.table = new Table(nameTable); | |
} | |
Error.prototype.add = function (err) { | |
this.table.add([[Date.now(), err.component || "[Undefined]", err.message]]); | |
}; | |
return Error; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment