org.opennms.bb.dp.poller.plugins
Class SpuriousMonitorException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.opennms.bb.dp.poller.plugins.ServiceMonitorException
|
+--org.opennms.bb.dp.poller.plugins.SpuriousMonitorException
- All Implemented Interfaces:
- Serializable
- public class SpuriousMonitorException
- extends ServiceMonitorException
This class is used by a service monitor to encapsulate an
unexpected exception that it does not know how to handle. The
exception is wrapped in the thrown instance that is caught
by the framework.
- Version:
- $Revision: 1.2 $
- Author:
- Weave, OpenNMS
- See Also:
- Serialized Form
Field Summary |
private Exception |
m_exception
The unexpected exception that is returned to the caller. |
Method Summary |
Exception |
spuriousException()
Returns the unexpected exception encapsulated
within this exception instance. |
String |
toString()
Returns a string representation of this object and its
encapsulated exception. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
m_exception
private Exception m_exception
- The unexpected exception that is returned to the caller.
SpuriousMonitorException
public SpuriousMonitorException(Exception ex)
- Constructs a new exception instance.
SpuriousMonitorException
public SpuriousMonitorException(String msg,
Exception ex)
- Constructs a new exception instance with the specific message
- Parameters:
msg
- The exception message.
spuriousException
public Exception spuriousException()
- Returns the unexpected exception encapsulated
within this exception instance.
- Returns:
- The encapsulated exception
toString
public String toString()
- Returns a string representation of this object and its
encapsulated exception.
- Overrides:
toString
in class Throwable