Package org.wso2.carbon.registry.common.ui

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


            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getPaginatedBalanceInfo(pageNumber);
        }catch (Exception exp){
            String msg = "Failed to get paginated balance info ";
            log.error(msg, exp);
            throw new UIException(msg, exp);
        }
    }
View Full Code Here


            BillingServiceClient serviceClient = new BillingServiceClient(config, session);
            return serviceClient.getOutstandingBalance(tenantDomain);
        }catch (Exception exp){
            String msg = "Failed to get balance info for domain: " + tenantDomain;
            log.error(msg, exp);
            throw new UIException(msg, exp);
        }
    }
View Full Code Here

            }
            return serviceClient.retrieveCurrentTenantUsage(yearMonth);
        } catch (Exception e) {
            String msg = "Failed to get current tenant usage.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

            }
            return serviceClient.retrieveTenantUsages(yearMonth);
        } catch (Exception e) {
            String msg = "Failed to get all tenants usages.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

            }
            return serviceClient.retrievePaginatedTenantUsages(yearMonth, pageNumber, entriesPerPage);
        } catch (Exception e) {
            String msg = "Failed to get all tenants usages.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

            }
            return serviceClient.retrieveTenantUsage(yearMonth, Integer.parseInt(tenantIdStr));
        } catch (Exception e) {
            String msg = "Failed to get tenant usages.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

            InstanceUsageStatics[] returnInstanceUsage = serviceClient.retrieveInstanceUsage();
            return returnInstanceUsage;
        } catch (Exception e) {
            String msg = "Failed to get current instance usage.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

            }
            return serviceClient.retrievePaginatedInstanceUsage(yearMonth, pageNumber, entriesPerPage);
        } catch (Exception e) {
            String msg = "Failed to get paginated instance usages.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

                    new ResourceServiceClient(cookie, config, request.getSession());
            client.delete(pathToDelete);
        } catch (Exception e) {
            String msg = "Failed to delete " + pathToDelete + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(e);
        }
    }
View Full Code Here

            return endpointBean;

        } catch (Exception e) {
            String msg = "Failed to get end point details. " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.registry.common.ui.UIException

Copyright © 2018 www.massapicom. 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.