org.newsml.toolkit.conformance
Class ConformanceWarning
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.io.IOException
|
+--org.newsml.toolkit.NewsMLException
|
+--org.newsml.toolkit.conformance.ConformanceWarning
- All Implemented Interfaces:
- Serializable
- public class ConformanceWarning
- extends NewsMLException
Exception for a non-fatal warning.
This class adds no new methods or functionality to
NewsMLException, but it allows a warning to be distinguished from
an error in a try...catch construction.
- Version:
- 2.0
- Author:
- Reuters PLC
- See Also:
- Serialized Form
ConformanceWarning
public ConformanceWarning()
- Construct a new conformance warning.
ConformanceWarning
public ConformanceWarning(String message)
- Construct a new conformance warning with an explicit message.
- Parameters:
message
- The warning message.
ConformanceWarning
public ConformanceWarning(Exception exception)
- Construct a new conformance warning wrapping another exception.
- Parameters:
exception
- The exception to wrap.
ConformanceWarning
public ConformanceWarning(String message,
Exception exception)
- Construct a conformance warning with a message and wrapped exception.
- Parameters:
message
- The warning message.exception
- The exception to wrap.