java.lang.Object
com.sun.tools.ws.wscompile.ErrorReceiver
com.sun.tools.ws.wscompile.ErrorReceiverFilter
- All Implemented Interfaces:
com.sun.tools.xjc.api.ErrorListener
,org.glassfish.jaxb.core.api.ErrorListener
,ErrorHandler
- Direct Known Subclasses:
WsimportTool.Receiver
Filter implementation of the ErrorReceiver.
If an error is encountered, this filter sets a flag.
- Author:
- Kohsuke Kawaguchi ([email protected]), Vivek Pandey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
debug
(SAXParseException exception) void
error
(SAXParseException exception) void
fatalError
(SAXParseException exception) final boolean
hadError()
void
info
(SAXParseException exception) Reports verbose messages to users.void
reset()
Resets the error state its currently in.void
setErrorReceiver
(com.sun.tools.xjc.api.ErrorListener handler) void
warning
(SAXParseException exception) Methods inherited from class com.sun.tools.ws.wscompile.ErrorReceiver
debug, error, error, error, error, getLocationString, pollAbort, warning
-
Constructor Details
-
ErrorReceiverFilter
public ErrorReceiverFilter() -
ErrorReceiverFilter
public ErrorReceiverFilter(com.sun.tools.xjc.api.ErrorListener h)
-
-
Method Details
-
setErrorReceiver
public void setErrorReceiver(com.sun.tools.xjc.api.ErrorListener handler) -
hadError
public final boolean hadError() -
reset
public void reset()Resets the error state its currently in. It allows to ignore the error reported by any sub-system. -
info
Description copied from class:ErrorReceiver
Reports verbose messages to users.This method can be used to report additional non-essential messages. The implementation usually discards them unless some specific debug option is turned on.
- Specified by:
info
in interfacecom.sun.tools.xjc.api.ErrorListener
- Specified by:
info
in interfaceorg.glassfish.jaxb.core.api.ErrorListener
- Specified by:
info
in classErrorReceiver
-
debug
- Specified by:
debug
in classErrorReceiver
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Specified by:
warning
in interfacecom.sun.tools.xjc.api.ErrorListener
- Specified by:
warning
in interfaceorg.glassfish.jaxb.core.api.ErrorListener
- Specified by:
warning
in classErrorReceiver
-
error
- Specified by:
error
in interfaceErrorHandler
- Specified by:
error
in interfacecom.sun.tools.xjc.api.ErrorListener
- Specified by:
error
in interfaceorg.glassfish.jaxb.core.api.ErrorListener
- Specified by:
error
in classErrorReceiver
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Specified by:
fatalError
in interfacecom.sun.tools.xjc.api.ErrorListener
- Specified by:
fatalError
in interfaceorg.glassfish.jaxb.core.api.ErrorListener
- Specified by:
fatalError
in classErrorReceiver
-