Skip to content

Instantly share code, notes, and snippets.

@d-oderbolz
Created January 19, 2018 10:47
Show Gist options
  • Save d-oderbolz/28899afa6c6d8d0399857828a93af0f3 to your computer and use it in GitHub Desktop.
Save d-oderbolz/28899afa6c6d8d0399857828a93af0f3 to your computer and use it in GitHub Desktop.
getActiveProductsManagedByUser: function(user_sys_id){
try
{
if (! this.checkSysId(user_sys_id))
{
throw("getProductsManagedByUser: Not a valid sys_id - " + user_sys_id);
}
// Rest of code here
}
catch (e)
{
// Nice to read this using reflection
var context = "KMClientScripts.getActiveProductsManagedByUser";
gs.error(context + "-" + e.message);
gs.eventQueue('script.error', null, context, e.message);
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment