Examples of UiException


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

            client.restoreVersion(versionPath);

        } catch (Exception e) {
            String msg = "Failed to restore the resource " + versionPath + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }

        return versionPath;
    }
View Full Code Here

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

            client.addCollection(parentPath, collectionName, mediaType, description);
        } catch (Exception e) {
            String msg = "Failed to add new collection " + collectionName +
                    " to the parent collection " + parentPath + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(msg, e);
        }

        return parentPath;
    }
View Full Code Here

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

           
        } catch (Exception e) {
            String msg = "Failed to rename resource " + oldResourcePath +
                    " to the name " + newName + ". " + e.getMessage();
            log.error(msg, e);
            throw new UIException(e);
        }
    }
View Full Code Here

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

            String msg = fault.getReason() + " Failed to add tenant config. tenant-domain: " +
                    tenantInfoBean.getTenantDomain() + ", " +
                    "tenant-admin: " + tenantInfoBean.getAdmin() + ".";
            log.error(msg, e);
            // we are preserving the original message.
            throw new UIException(e.getMessage(), e);
        }
    }
View Full Code Here

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

            AxisFault fault = new AxisFault(e.getMessage());
            String msg = fault.getReason() + " Failed to reset password. tenant-domain: " + domain +
                    " admin: " + admin;
            log.error(msg, e);
            // we are preventing more details going ahead further to user.
            throw new UIException(e.getMessage(), e);
        }
    }
View Full Code Here

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

        } catch (Exception e) {
            AxisFault fault = new AxisFault(e.getMessage());
            String msg = fault.getReason() + " Failed to update password. tenant-domain: " + domain;
            log.error(msg, e);
            // we are preserving the original message.
            throw new UIException(e.getMessage(), e);
        }
    }
View Full Code Here

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

                    new TenantSelfRegistrationClient(config, session);
            return selfRegistrationClient.checkDomainAvailability(tenantDomain);
        } catch (Exception e) {
            String msg = "Failed to check the domain availability:" + tenantDomain + ".";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

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

            return selfRegistrationClient.validateOrSuggestDomain(tempDomainToRegister, successKey);
        } catch (Exception e) {
            String msg = "Failed to validate or suggest a domain related to :" +
                    tempDomainToRegister + ".";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
View Full Code Here

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

                    new TenantSelfRegistrationClient(config, session);
            return selfRegistrationClient.generateRandomCaptcha();
        } catch (Exception e) {
            String msg = "Error in generating the captcha image.";
            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);
            return serviceClient.getPackageInfo();
        } catch (Exception e) {
            String msg = "Failed to get the package information.";
            log.error(msg, e);
            throw new UIException(msg, e);
        }
    }
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.