it.jnrpe.plugins
Class MetricGatheringException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by it.jnrpe.plugins.MetricGatheringException
All Implemented Interfaces:
Serializable

public class MetricGatheringException
extends Exception

This is the exception that must be thrown if an error occurs gathering metrics.

Author:
Massimiliano Ziccardi
See Also:
Serialized Form

Constructor Summary
MetricGatheringException(String message, Status status, Throwable cause)
          Builds and initializes the exception.
 
Method Summary
 Status getStatus()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetricGatheringException

public MetricGatheringException(String message,
                                Status status,
                                Throwable cause)
Builds and initializes the exception.

Parameters:
message - The message to return to Nagios.
status - The status to return to Nagios.
cause - The original cause of the error.
Method Detail

getStatus

public final Status getStatus()
Returns:
The status to be returned to Nagios.


Copyright © 2014. All Rights Reserved.