it.jnrpe.plugins
Class MetricGatheringException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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.
getStatus
public final Status getStatus()
- Returns:
- The status to be returned to Nagios.
Copyright © 2014. All Rights Reserved.