Skip to content

Instantly share code, notes, and snippets.

@DazWilkin
Created September 21, 2012 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DazWilkin/3764445 to your computer and use it in GitHub Desktop.
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
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