'[CredentialStore]'.$e->getMessage() ]); exit; } else { echo '[CredentialStore]'.$e->getMessage(); } // Stop this execution, but continue 'globally'. return; } // AJAX controller. if (is_ajax()) { $method = get_parameter('method'); if (method_exists($cs, $method) === true) { if ($cs->ajaxMethod($method) === true) { $cs->{$method}(); } else { $cs->error('Unavailable method.'); } } else { $cs->error('Method not found. ['.$method.']'); } // Stop any execution. exit; } else { // Run. $cs->run(); }