All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.msv.verifier.util.ErrorHandlerImpl Maven / Gradle / Ivy

There is a newer version: 2.2.5.1
Show newest version
/*
 * @(#)$Id: ErrorHandlerImpl.java,v 1.4 2003/06/09 20:37:48 kk122374 Exp $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.verifier.util;

import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXParseException;

/**
 * default implementation of ErrorHandler.
 * 
 * If an error is found, this implementation will throw it 
 * as an exception so that no further processing of the document will be performed.
 * 
 * 

* All warnings are ignored. * * @author Kohsuke KAWAGUCHI */ public class ErrorHandlerImpl implements ErrorHandler { /** * the singleton instance of this object. This class doesn't have any * internal state so */ public static final ErrorHandler theInstance = new ErrorHandlerImpl(); public void fatalError( SAXParseException error ) throws SAXParseException { throw error; } public void error( SAXParseException error ) throws SAXParseException { throw error; } public void warning( SAXParseException warning ) {} }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy