Examples of SourceException


Examples of org.apache.excalibur.source.SourceException

     * @param sourcelock Lock, which should be added
     *
     * @throws SourceException If an exception occurs during this operation
     */
    public void addSourceLocks(SourceLock sourcelock) throws SourceException {
        throw new SourceException("Operation not yet supported");
    }
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

                                                      lock.isExclusive()));
            }

            return sourcelocks.elements();
        } catch (SlideException se) {
            throw new SourceException("Could not retrieve locks", se);
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

            try {
                nat.rollback();
            } catch (Exception rbe) {
                getLogger().error("Rollback failed for setting a source property", rbe);
            }
            throw new SourceException("Could not set source property", se);
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

        try {
            parser = (DOMParser) this.manager.lookup(DOMParser.ROLE);
            doc = parser.parseDocument(src);
        } catch (Exception e) {
            throw new SourceException("Could not parse property", e);
        } finally {
            this.manager.release((Component) parser);
        }

        return new SourceProperty(doc.getDocumentElement());
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

                SourceProperty srcProperty = new SourceProperty(doc.getDocumentElement());

                sourceproperties.addElement(srcProperty);
            }
        } catch (Exception e) {
            throw new SourceException("Could not parse property "+xml, e);
        } finally {
            this.manager.release((Component) parser);
        }

        SourceProperty[] sourcepropertiesArray = new SourceProperty[sourceproperties.size()];
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

                content.store(slideToken,
                              this.config.getFilesPath()+this.path,
                              revisionDescriptor, null);
            }
        } catch (SlideException se) {
            throw new SourceException("Could not remove property", se);
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

                                                        this.path);

            return this.revisionDescriptors.hasRevisions();

        } catch (SlideException se) {
            throw new SourceException("Could not retrieve revision descriptor",
                                      se);
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

            this.revisionDescriptor = content.retrieve(slideToken,
                                                       revisionDescriptors,
                                                       new NodeRevisionNumber(this.sourcerevision));

        } catch (SlideException se) {
            throw new SourceException("Could not retrieve revision descriptor",
                                      se);
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

                                                        this.path);

            return this.revisionDescriptors.getLatestRevision().toString();

        } catch (SlideException se) {
            throw new SourceException("Could not retrieve revision descriptor",
                                      se);
        }
    }
View Full Code Here

Examples of org.apache.excalibur.source.SourceException

            return new ByteArrayInputStream(os.toByteArray());

        } catch (ResourceNotFoundException e) {
            throw new SourceNotFoundException("Exception during processing of " + this.systemId, e);
        } catch (Exception e) {
            throw new SourceException("Exception during processing of " + this.systemId, e);
        } finally {
            // Unhide wrapped environment output stream
            this.environment.setOutputStream(null);
            reset();
        }
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.