sk.uniba.euromath.gene.messages
Class ErrorListenerAdapter

java.lang.Object
  extended by sk.uniba.euromath.gene.messages.ErrorListenerAdapter
All Implemented Interfaces:
ErrorListener

public class ErrorListenerAdapter
extends Object
implements ErrorListener

Adapts the Messages instance to the ErrorListener interface. When fatal error occurs, the exception is simply thrown.

Author:
Martin Vysny

Field Summary
 Messages messages
          Here all messages are stored.
 
Constructor Summary
ErrorListenerAdapter(Messages messages)
          Constructor.
 
Method Summary
 void error(TransformerException exception)
           
 void fatalError(TransformerException exception)
           
 void warning(TransformerException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

public final Messages messages
Here all messages are stored.

Constructor Detail

ErrorListenerAdapter

public ErrorListenerAdapter(Messages messages)
Constructor.

Parameters:
messages - Here all messages are stored.
Method Detail

warning

public void warning(TransformerException exception)
             throws TransformerException
Specified by:
warning in interface ErrorListener
Throws:
TransformerException

error

public void error(TransformerException exception)
           throws TransformerException
Specified by:
error in interface ErrorListener
Throws:
TransformerException

fatalError

public void fatalError(TransformerException exception)
                throws TransformerException
Specified by:
fatalError in interface ErrorListener
Throws:
TransformerException


Copyright 2003-2003-2006 null. All Rights Reserved.