org.ow2.jonas.security.lib
Class JErrorHandler

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

public class JErrorHandler
extends Object
implements 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(SAXParseException exception)
          Receive notification of a recoverable error.
 void fatalError(SAXParseException exception)
          Receive notification of a non-recoverable error.
 void warning(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(SAXParseException exception)
             throws SAXException
Receive notification of a warning.

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

error

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

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

fatalError

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

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.