Package pt.opensoft.field

Examples of pt.opensoft.field.ValidationException


            throw e;
        } catch (SAXException e) {
            throw e;
        } catch (Exception e) {
            String message = e.getLocalizedMessage() == null ? e.getClass().getName() : e.getLocalizedMessage();
            throw new ValidationException("XML", message, element.getLine(), element.getColumn());
        }
    }
View Full Code Here


            throw e;
        } catch (SAXException e) {
            throw e;
        } catch (Exception e) {
            String message = e.getLocalizedMessage() == null ? e.getClass().getName() : e.getLocalizedMessage();
            throw new ValidationException("XML", message, element.getLine(), element.getColumn(), e);
        }
    }
View Full Code Here

        } catch (MaxErrorsExceededException e) {
            // ignored because it signals end of validating
        } catch (SAXParseException e) {
            // ignored because it is already signaled to error handler
        } catch (SAXException e) {
            error(new ValidationException("XML", e.getLocalizedMessage()));
        } catch (RuntimeException e) {
            throw e;
        } catch (Exception e) {
            error(new ValidationException("XML", e.getLocalizedMessage()));
        }
        return getErrors();
    }
View Full Code Here

    public abstract void endElement(XmlElement element, int line, int column) throws Exception;

    /** ErrorHandler methods */

    public void warning(SAXParseException e) throws SAXException {
        error(new ValidationException("XML", e.getLocalizedMessage(), e.getLineNumber(), e.getColumnNumber()));
    }
View Full Code Here

         * reader.parser.getProperty("http://apache.org/xml/properties/schema/external-schemaLocation").toString(); logger.warning("XML
         * Validator: XML6 PROPRIEDADES: "+ propriedades + " - FEATURES: " + features.toString() + " - MESSAGE: "+ e.getMessage() + " -
         * PUBLICID: " + e.getPublicId() + " - SYSYTEMID: " + e.getSystemId() + " - CAUSE: " + e.getCause() + " - EXCEPTION: " +
         * e.getException() + " - STACK: "+ stack.toString());
         */
        error(new ValidationException("XML", e.getLocalizedMessage(), e.getLineNumber(), e.getColumnNumber()));
        throw e;
    }
View Full Code Here

        throw e;
    }

    public void fatalError(SAXParseException e) throws SAXException {

        error(new ValidationException("XML", e.getLocalizedMessage(), e.getLineNumber(), e.getColumnNumber()));
        e.printStackTrace();
        throw e;
    }
View Full Code Here

TOP

Related Classes of pt.opensoft.field.ValidationException

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.