org.objectweb.jonas.security.lib
Class JErrorHandler

java.lang.Object
  extended by org.objectweb.jonas.security.lib.JErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class JErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Define an error handler which throw an exception as Digester not (only print stack trace). Security service use this handler for throwing/catching in a convenient way the xml parsing error of jonas-realm.xml file.


Constructor Summary
JErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
          Receive notification of a recoverable error.
 void fatalError(org.xml.sax.SAXParseException exception)
          Receive notification of a non-recoverable error.
 void warning(org.xml.sax.SAXParseException exception)
          Receive notification of a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JErrorHandler

public JErrorHandler()
Method Detail

warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException
Receive notification of a warning.

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
exception - exception to throw
Throws:
org.xml.sax.SAXException - if an error is thrown

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException
Receive notification of a recoverable error.

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
exception - exception to throw
Throws:
org.xml.sax.SAXException - if an error is thrown

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException
Receive notification of a non-recoverable error.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
exception - exception to throw
Throws:
org.xml.sax.SAXException - if an error is thrown