it.jnrpe.utils.thresholds
Class RangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.jnrpe.utils.BadThresholdException
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. |
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.
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
- Returns:
- the error message.
Copyright © 2014. All Rights Reserved.