Examples of UiException


Examples of org.wso2.carbon.registry.common.ui.UIException

            UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
            return serviceClient.getCurrentSubscription();
        } catch (Exception e) {
            String msg = "Failed to get the current subscription.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
            serviceClient.updateSubscription(packageName, duration);
        } catch (Exception e) {
            String msg = "Failed to update the subscription.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            UpgradeServiceClient serviceClient = new UpgradeServiceClient(config, session);
            serviceClient.cancelSubscription();
        } catch (Exception e) {
            String msg = "Failed to cancel the current subscription.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getAvailableBillingPeriods();
        } catch (java.lang.Exception e) {
            String msg = "Failed to get available billing periods.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getPastInvoice(invoiceId);
        } catch (java.lang.Exception e) {
            String msg = "Failed to get past invoice for invoice id:" + invoiceId + ".";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getCurrentInvoice();
        } catch (java.lang.Exception e) {
            String msg = "Failed to get the current invoice.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.registry.common.ui.UIException

            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.addPayment(payment, amount);
        }catch (Exception exp){
            String msg = "Failed to add the payment record " + payment.getDescription();
            log.error(msg, exp);
            throw new UIException(msg, exp);
        }
    }
View Full Code Here

Examples of org.zkoss.zk.ui.UiException

    return _zclass == null ? "z-horpanel" : _zclass;
  }
 
  public void beforeParentChanged(Component parent) {
    if (parent != null && !(parent instanceof Horbox))
      throw new UiException("Wrong parent: "+parent);
    super.beforeParentChanged(parent);
  }
View Full Code Here

Examples of org.zkoss.zk.ui.UiException

    final String cmd = request.getCommand();
    if (cmd.equals(Events.ON_SELECT)) {
      SelectEvent evt = SelectEvent.getSelectEvent(request);
      Set selItems = evt.getSelectedItems();
      if (selItems == null || selItems.size() != 1)
        throw new UiException("Exactly one selected tab is required: " + selItems); // debug purpose
      final Horbox horbox = getHorbox();
      if (horbox != null)
        horbox.selectPanelDirectly((Horpanel) selItems.iterator().next(), true);
      Events.postEvent(evt);
    } else
View Full Code Here

Examples of org.zkoss.zk.ui.UiException

  // helper //
  /*package*/ void selectPanelDirectly(Horpanel horpanel, boolean byClient){
    if (horpanel == null)
      throw new IllegalArgumentException("null tab");
    if (horpanel.getHorbox() != this)
      throw new UiException("Not my child: " + horpanel);
    if (horpanel != _selPanel) {
      if (_selPanel != null)
        _selPanel.setSelectedDirectly(false);

      _selPanel = horpanel;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.