Package org.wso2.carbon.governance.api.exception

Examples of org.wso2.carbon.governance.api.exception.GovernanceException


                    .equals(r.getProperty(ACTIVATE_PROPERTY_FLAG_NAME));
        } catch (RegistryException e) {
            String msg = "Error in checking the activeness of the service: id:" + getId() +
                    ", path: " + getPath() + ".";
            log.error(msg, e);
            throw new GovernanceException(msg, e);
        }
    }
View Full Code Here


            }
        } catch (RegistryException e) {
            String msg =
                    "Error in getting attached policies from the artifact at path: " + path + ".";
            log.error(msg, e);
            throw new GovernanceException(msg, e);
        }
        return policies.toArray(new Policy[policies.size()]);
    }
View Full Code Here

            }
        } catch (RegistryException e) {
            String msg =
                    "Error in getting attached schemas from the artifact at path: " + path + ".";
            log.error(msg, e);
            throw new GovernanceException(msg, e);
        }
        return schemas.toArray(new Schema[schemas.size()]);
    }
View Full Code Here

                }
            }
        } catch (RegistryException e) {
            String msg = "Error in getting attached wsdls from the artifact at path: " + path + ".";
            log.error(msg, e);
            throw new GovernanceException(msg, e);
        }
        return wsdls.toArray(new Wsdl[wsdls.size()]);
    }
View Full Code Here

            }
        } catch (RegistryException e) {
            String msg =
                    "Error in getting attached endpoints from the artifact at path: " + path + ".";
            log.error(msg, e);
            throw new GovernanceException(msg, e);
        }
        return endpoints.toArray(new Endpoint[endpoints.size()]);
    }
View Full Code Here

                                break;
                            }
                        } catch (Exception e) {
                            String msg = "Error in performing the regular expression matches for: " +
                                    referenceValue + ".";
                            throw new GovernanceException(msg, e);
                        }
                    }
                    if (satisfied) {
                        break;
                    }
View Full Code Here

        } catch (RegistryException e) {
            String msg =
                    "Add endpoint failed: endpoint id: " + endpoint.getId() + ", path: " +
                            endpoint.getPath() + ".";
            log.error(msg, e);
            throw new GovernanceException(msg, e);
        } finally {
            if (succeeded) {
                try {
                    registry.commitTransaction();
                } catch (RegistryException e) {
View Full Code Here

            String msg =
                    "Updates are only accepted if the url is available. " +
                            "So no updates will be done. " + "endpoint id: " + endpoint.getId() +
                            ", endpoint path: " + endpoint.getPath() + ".";
            log.error(msg);
            throw new GovernanceException(msg);
        }
        boolean succeeded = false;
        try {
            registry.beginTransaction();

            // getting the old endpoint.
            Endpoint oldEndpoint = getEndpoint(endpoint.getId());
            if (oldEndpoint != null) {
                // we are expecting only the OMElement to be different.
                String oldPath = oldEndpoint.getPath();
                registry.delete(oldPath);
            }
           
            addEndpoint(endpoint);
            succeeded = true;
        } catch (RegistryException e) {
            String msg =
                    "Error in updating the endpoint, endpoint id: " + endpoint.getId() +
                            ", endpoint path: " + endpoint.getPath() + ".";
            log.error(msg, e);
            throw new GovernanceException(msg, e);
        } finally {
            if (succeeded) {
                try {
                    registry.commitTransaction();
                } catch (RegistryException e) {
View Full Code Here

        GovernanceArtifact artifact =
                GovernanceUtils.retrieveGovernanceArtifactById(registry, endpointId);
        if (artifact != null && !(artifact instanceof Endpoint)) {
            String msg = "The artifact request is not an endpoint. id: " + endpointId + ".";
            log.error(msg);
            throw new GovernanceException(msg);
        }
        return (Endpoint) artifact;
    }
View Full Code Here

        } catch (RegistryException e) {
            String msg =
                    "Error in setting the resource content for endpoint. path: " +
                            endpoint.getPath() + ", " + "id: " + endpoint.getId() + ".";
            log.error(msg);
            throw new GovernanceException(msg, e);
        }
        // and set all the attributes as properties.
        String[] attributeKeys = endpoint.getAttributeKeys();
        if (attributeKeys != null) {
            Properties properties = new Properties();
View Full Code Here

TOP

Related Classes of org.wso2.carbon.governance.api.exception.GovernanceException

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.