org.exolab.adaptx.util

Interface ErrorObserver

Known Implementing Classes:
DefaultObserver, ErrorObserverAdapter, ProcessorCallback, ResultFormatter, RuleProcessor, StylesheetHandler, XSLTProcessor, XSLTReader

public interface ErrorObserver

A simple interface that allows xsl:message actions to be observed.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/01 07:39:30 $

Author:
Keith Visco

Field Summary

static int
FATAL
static int
NORMAL
static int
WARNING

Method Summary

void
receiveError(Exception exception)
Signals an error with normal level
void
receiveError(Exception exception, String message)
Signals an error with normal level
void
receiveError(Exception exception, String message, int level)
Signals an error with the given error level
void
receiveError(Exception exception, int level)
Signals an error with the given error level
void
receiveError(String message)
Signals an error with normal level
void
receiveError(String message, int level)
Signals an error with the given error level

Field Details

FATAL

public static final int FATAL

Field Value:
0


NORMAL

public static final int NORMAL

Field Value:
1


WARNING

public static final int WARNING

Field Value:
2

Method Details

receiveError

public void receiveError(Exception exception)
Signals an error with normal level

Parameters:
exception - the Exception that caused the error


receiveError

public void receiveError(Exception exception,
                         String message)
Signals an error with normal level

Parameters:
exception - the Exception that caused the error
message - an option message, used when additional information can be provided.


receiveError

public void receiveError(Exception exception,
                         String message,
                         int level)
Signals an error with the given error level

Parameters:
exception - the Exception that caused the error
message - an option message, used when additional information can be provided.
level - the error level


receiveError

public void receiveError(Exception exception,
                         int level)
Signals an error with the given error level

Parameters:
exception - the Exception that caused the error
level - the error level


receiveError

public void receiveError(String message)
Signals an error with normal level

Parameters:
message - the error message


receiveError

public void receiveError(String message,
                         int level)
Signals an error with the given error level

Parameters:
message - the error message
level - the error level