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

Constructor Summary
ConformanceWarning()
          Construct a new conformance warning.
ConformanceWarning(Exception exception)
          Construct a new conformance warning wrapping another exception.
ConformanceWarning(String message)
          Construct a new conformance warning with an explicit message.
ConformanceWarning(String message, Exception exception)
          Construct a conformance warning with a message and wrapped exception.
 
Methods inherited from class org.newsml.toolkit.NewsMLException
getException, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.