it.jnrpe.utils.thresholds
Class RangeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by it.jnrpe.utils.BadThresholdException
              extended by it.jnrpe.utils.thresholds.RangeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidRangeSyntaxException, PrematureEndOfRangeException

public class RangeException
extends BadThresholdException

Base class for the range parsing exceptions.

Author:
Massimiliano Ziccardi
See Also:
Serialized Form

Constructor Summary
RangeException(it.jnrpe.utils.thresholds.Stage stage, String found, String wholeString)
          Builds the exception specifying the stage, the bad tokens and the whole string.
RangeException(String errorMessage)
          Builds and initialize the exception with the error message.
 
Method Summary
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RangeException

public RangeException(String errorMessage)
Builds and initialize the exception with the error message.

Parameters:
errorMessage - The message

RangeException

public RangeException(it.jnrpe.utils.thresholds.Stage stage,
                      String found,
                      String wholeString)
Builds the exception specifying the stage, the bad tokens and the whole string.

Parameters:
stage - The stage that caused the error.
found - The string that caused the error.
wholeString - The whole range string.
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
Returns:
the error message.


Copyright © 2014. All Rights Reserved.