package org.owasp.saml;

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

import java.util.logging.Logger;

public class SamlErrorHandler implements ErrorHandler {

    private final static Logger LOG = Logger.getLogger(SamlErrorHandler.class.getName());

    public void warning(SAXParseException e) throws SAXException {
        LOG.warning("Warning " + e.getMessage());
        throw new SAXException("Parser warning " + e.getMessage());
    }

    public void error(SAXParseException e) throws SAXException {
        LOG.warning("Error " + e.getMessage());
        throw new SAXException("Parser error " + e.getMessage());
    }

    public void fatalError(SAXParseException e) throws SAXException {
        LOG.warning("Fatal " + e.getMessage());
        throw new SAXException("Parser fatal " + e.getMessage());
    }
}

@@ -305,16 +305,30 @@
 me());%0A%0A
+    @Override%0A
     publ
@@ -378,32 +378,32 @@
  SAXException %7B%0A
-
         LOG.warn
@@ -503,32 +503,46 @@
 sage());%0A    %7D%0A%0A
+    @Override%0A
     public void 
@@ -707,24 +707,38 @@
 ());%0A    %7D%0A%0A
+    @Override%0A
     public v

add @Override