it.jnrpe.utils.thresholds
Class InvalidRangeSyntaxException

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
                  extended by it.jnrpe.utils.thresholds.InvalidRangeSyntaxException
All Implemented Interfaces:
Serializable

public class InvalidRangeSyntaxException
extends RangeException

Exception thrown when a range syntax error is found.

Author:
Massimiliano Ziccardi
See Also:
Serialized Form

Constructor Summary
InvalidRangeSyntaxException(it.jnrpe.utils.thresholds.Stage stage, String found)
          Builds the exception specifying the stage and the range string.
InvalidRangeSyntaxException(it.jnrpe.utils.thresholds.Stage stage, String found, String wholeString)
          Builds the exception specifying the stage, the bad tokens and the whole string.
 
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

InvalidRangeSyntaxException

public InvalidRangeSyntaxException(it.jnrpe.utils.thresholds.Stage stage,
                                   String found)
Builds the exception specifying the stage and the range string.

Parameters:
stage - The stage that caused the error.
found - The string that caused the error.

InvalidRangeSyntaxException

public InvalidRangeSyntaxException(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 final String getMessage()
Overrides:
getMessage in class RangeException
Returns:
the exception message


Copyright © 2014. All Rights Reserved.