Code example for DefaultHandler

Methods: fatalError

0
    } 
 
    public void testFatalError() { 
        // Ordinary case 
        try { 
            h.fatalError(new SAXParseException("Foo", new LocatorImpl()));
            fail("SAXException expected");
        } catch (SAXException e) {
            // Expected 
        } 
 
        // No exception 
        try { 
            h.fatalError(null);
            fail("NullPointerException expected");
        } catch (SAXException e) {
            fail("NullPointerException expected");
        } catch (NullPointerException e) {
            // Expected 
        } 
Contextual code suggestions in your IDE  Get Codota for Java