Package eu.planets_project.pp.plato.services

Examples of eu.planets_project.pp.plato.services.PlatoServiceException


       
        XcdlDescription xcdl = null;
        try {
            xcdl = extract(fullname, data);
        catch (Throwable e) {
            throw new PlatoServiceException("XCL property extraction failed.", e);
        }
       
        return xcdl;
    }
View Full Code Here


            
        XcdlDescription xcdl = null;
        try {
            xcdl = extract(object.getFullname(), object.getData().getData());
        } catch (Throwable e) {
            throw new PlatoServiceException("XCL property extraction failed.", e);
        }
        return xcdl;
    }
View Full Code Here

                digester.setUseContextClassLoader(true);

                digester.parse( new FileInputStream(outputFile));
               
                if (error != null) {
                    throw new PlatoServiceException("XCLExplorer failed: " + error);
                }
               
                return new ArrayList<ObjectProperty>(propertiesSet);
               
            } catch (IOException e) {
                throw new PlatoServiceException("The response of XCLExplorer is invalid.", e);
            } catch (SAXException e) {
                throw new PlatoServiceException("The response of XCLExplorer is invalid.", e);
            } finally {
                new File(tempDir+"fpm.fpm").delete();
                new File(tempDir).delete();
            }
        }  catch (Exception e) {
View Full Code Here

       
        try {
            d.parse(validResult);
            if (error != null) {
                throw new PlatoServiceException("XCL tool:comparator failed: " + error);
            }
            return compResult;
        } catch (PlatoServiceException e) {
            throw e;
        } catch (Exception e) {
            throw new PlatoServiceException("The response of the XCL tool:comparator is invalid.", e);
        } catch (Error e) {
            throw new PlatoServiceException("The response of the XCL tool:comparator is invalid.", e);
        }
    }
View Full Code Here

    {
        IPreservationActionRegistry serviceLocator = null;
        try {
            serviceLocator = PreservationActionRegistryFactory.getInstance(registry);
        } catch (IllegalArgumentException e1) {
            throw new PlatoServiceException( "Registry:  " + registry.getShortname() + " has changed and needs to be reconfigured.");
        }
        if (serviceLocator == null) {
            throw new PlatoServiceException ("Failed to access " + registry.getShortname());
        }
        // query the registry
        return serviceLocator.getAvailableActions(formatInfo);
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.services.PlatoServiceException

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.