SHARE
TWEET

Untitled

a guest Oct 14th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function payment() {
  2.  
  3.     try {
  4.       failSafeMessage('In progress');
  5.     } catch { }
  6.    
  7.     transferMoney();
  8.     failSafeMessage('Done');
  9. }
  10.  
  11. function failSafeMessage(message) {
  12.     try {
  13.       moduleA.show(message);
  14.     } catch {
  15.       try {
  16.         moduleB.show(message);
  17.       } catch {
  18.         alert(message);
  19.       }
  20.     }
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top