Examples of OperationNotAllowedException


Examples of org.apache.rat.report.xml.writer.OperationNotAllowedException

     * or after the first element has been closed
     */
    public IXmlWriter closeElement() throws IOException {
        if (elementNames.isEmpty()) {
            if (elementsWritten) {
                throw new OperationNotAllowedException("Root element has already been closed.");
            } else {
                throw new OperationNotAllowedException("Close called before an element has been opened.");           
            }
        }
        final CharSequence elementName = (CharSequence) elementNames.pop();
        if (inElement) {
            writer.write('/');
View Full Code Here

Examples of org.apache.rat.report.xml.writer.OperationNotAllowedException

     * if called before any call to {@link #openElement}
     */
    public IXmlWriter closeDocument() throws IOException {
        if (elementNames.isEmpty()) {
            if (!elementsWritten) {
                throw new OperationNotAllowedException("Close called before an element has been opened.");           
            }
        }
        while(!elementNames.isEmpty()) {
            closeElement();
        }
View Full Code Here

Examples of org.mifosplatform.infrastructure.jobs.exception.OperationNotAllowedException

        final String sql = "select job.display_name from job job where job.currently_running=true and job.updates_allowed=false";
        final List<String> names = this.jdbcTemplate.queryForList(sql, String.class);
        if (names != null && names.size() > 0) {
            final String listVals = names.toString();
            final String jobNames = listVals.substring(listVals.indexOf("[") + 1, listVals.indexOf("]"));
            throw new OperationNotAllowedException(jobNames);
        }
        return true;
    }
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.