Package org.exolab.castor.xml

Examples of org.exolab.castor.xml.XMLException


                if (uri != null) {
                    schemaLocation = uri.getAbsoluteURI();
                }
            }
            catch (URIException urix) {
                throw new XMLException(urix);
            }
        }
        else {
            schemaLocation = namespace;
            try {
                uri = getURIResolver().resolveURN(namespace);
            }
            catch (URIException urix) {
                throw new XMLException(urix);
            }
            if (uri == null) {
                String err = "Unable to resolve Schema corresponding " +
                    "to namespace '" + namespace + "'.";
                throw new SchemaException(err);
View Full Code Here


            if (uri != null) {
                schemaLocation = uri.getAbsoluteURI();
            }
        }
        catch (URIException urix) {
            throw new XMLException(urix);
        }

        //-- Schema object to hold import schema
    boolean addSchema = false;
    _redefineSchema = schema.getRedefineSchema(schemaLocation);
View Full Code Here

            if (prefixes.length == 0) {
                //-- this should never happen, but report error just
                //-- in case there is a bug in Namespaces class.
                String error = "unexpected error processing the following "
                    + "namespace: '" + ns + "'; the prefix could not be resolved.";
                throw new XMLException(error);
            }

            boolean hasCollisions = false;
            for (int pIdx = 0; pIdx < prefixes.length; pIdx++) {
                String prefix = prefixes[pIdx];
View Full Code Here

        if (getDocumentLocator() != null) {
            err += "\n   line: " + getDocumentLocator().getLineNumber();
        }

        throw new XMLException(err);
    } //-- error
View Full Code Here

        throws XMLException
    {

        if (getDocumentLocator() != null) {
            String err =  "An error occured at line: " + getDocumentLocator().getLineNumber();
            throw new XMLException(err, ex);
        }
        throw new XMLException(ex);
    } //-- error
View Full Code Here

        if (getDocumentLocator() != null) {
            err += "\n   line: " + getDocumentLocator().getLineNumber();
        }

        throw new XMLException(err);
    } //-- illegalAttribute
View Full Code Here

        if (getDocumentLocator() != null) {
            err += "\n   line: " + getDocumentLocator().getLineNumber();
        }

        throw new XMLException(err);
    } //-- illegalElement
View Full Code Here

        if (xtraInfo != null) {
            err += "\n   " + xtraInfo;
        }

        throw new XMLException(err+"\n");
    } //-- redefinedElement
View Full Code Here

        StringBuffer err = new StringBuffer("out of order element <");
        err.append(name);
        err.append("> found in <");
        err.append(elementName());
        err.append(">.");
        throw new XMLException(err.toString());
    }
View Full Code Here

                //-- namespace..this is valid...continue
            }
        }
       
        if (errors != null)
            throw new XMLException(errors.toString());
           
    } //-- validateRefAtts
View Full Code Here

TOP

Related Classes of org.exolab.castor.xml.XMLException

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.