Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. button_direct.addEventListener('click', function(e) {
  2. // place this somewhere 'global' if not already in your project
  3. var apm = require("com.appcelerator.apm");
  4. apm.init();
  5.  
  6. // directly log a handled exception
  7. var err = new Error('Service Unavailable: Direct logging');
  8.  
  9. apm.logHandledException(err);
  10. alert("Failed login exception");
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement