package com.bluemartini.xml;

import com.bluemartini.dna.*;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.*;

public class BMDefaultHandler extends
    DefaultHandler
{

    public BMDefaultHandler()
    {
    }

    public void warning(SAXParseException spe)
        throws SAXException
    {
        System.out.println("Warning: " + spe.getMessage());
    }

    public void error(SAXParseException spe)
        throws SAXException
    {
        throw new SAXException("Error:" + spe.getMessage());
    }

    public void fatalError(SAXParseException spe)
        throws SAXException
    {
        throw new SAXException("Fatal Error: " + spe.getMessage());
    }
}

