Package org.apache.xalan.transformer
Class MsgMgr
java.lang.Object
org.apache.xalan.transformer.MsgMgr
This class will manage error messages, warning messages, and other types of
message events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SourceLocator srcLctr, String msg) Tell the user of an error, and probably throw an exception.void
error
(SourceLocator srcLctr, String msg, Exception e) Tell the user of an error, and probably throw an exception.void
error
(SourceLocator srcLctr, String msg, Object[] args) Tell the user of an error, and probably throw an exception.void
error
(SourceLocator srcLctr, String msg, Object[] args, Exception e) Tell the user of an error, and probably throw an exception.void
error
(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg) Tell the user of an error, and probably throw an exception.void
Tell the user of an error, and probably throw an exception.void
message
(SourceLocator srcLctr, String msg, boolean terminate) Warn the user of a problem.void
warn
(SourceLocator srcLctr, String msg) Warn the user of a problem.void
warn
(SourceLocator srcLctr, String msg, Object[] args) Warn the user of a problem.void
warn
(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg) Warn the user of a problem.void
Warn the user of a problem.
-
Constructor Details
-
MsgMgr
Create a message manager object.- Parameters:
transformer
- non transformer instance
-
-
Method Details
-
message
public void message(SourceLocator srcLctr, String msg, boolean terminate) throws TransformerException Warn the user of a problem. This is public for access by extensions.- Parameters:
msg
- The message text to issueterminate
- Flag indicating whether to terminate this process- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
warn
Warn the user of a problem.- Parameters:
msg
- Message text to issue- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
warn
Warn the user of a problem.- Parameters:
msg
- Message text to issueargs
- Arguments to pass to the message- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
warn
public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg) throws TransformerException Warn the user of a problem.- Parameters:
styleNode
- Stylesheet nodesourceNode
- Source tree nodemsg
- Message text to issue- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
warn
public void warn(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object[] args) throws TransformerException Warn the user of a problem.- Parameters:
styleNode
- Stylesheet nodesourceNode
- Source tree nodemsg
- Message text to issueargs
- Arguments to pass to the message- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
error
Tell the user of an error, and probably throw an exception.- Parameters:
msg
- Message text to issue- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
error
Tell the user of an error, and probably throw an exception.- Parameters:
msg
- Message text to issueargs
- Arguments to be passed to the message- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
error
Tell the user of an error, and probably throw an exception.- Parameters:
msg
- Message text to issuee
- Exception to throw- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
error
public void error(SourceLocator srcLctr, String msg, Object[] args, Exception e) throws TransformerException Tell the user of an error, and probably throw an exception.- Parameters:
msg
- Message text to issueargs
- Arguments to use in messagee
- Exception to throw- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
error
public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg) throws TransformerException Tell the user of an error, and probably throw an exception.- Parameters:
styleNode
- Stylesheet nodesourceNode
- Source tree nodemsg
- Message text to issue- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-
error
public void error(SourceLocator srcLctr, Node styleNode, Node sourceNode, String msg, Object[] args) throws TransformerException Tell the user of an error, and probably throw an exception.- Parameters:
styleNode
- Stylesheet nodesourceNode
- Source tree nodemsg
- Message text to issueargs
- Arguments to use in message- Throws:
XSLProcessorException
- thrown if the active ProblemListener and XPathContext decide the error condition is severe enough to halt processing.TransformerException
-