Class MeasurementParseException

    • Constructor Summary

      Constructors 
      Constructor Description
      MeasurementParseException​(java.lang.CharSequence parsedData, int position)
      Constructs a MeasurementParseException with the parsed text and offset.
      MeasurementParseException​(java.lang.String message)
      Constructs a MeasurementParseException with the specified detail message.
      MeasurementParseException​(java.lang.String message, java.lang.CharSequence parsedData, int position)
      Constructs a MeasurementParseException with the specified detail message, parsed text and index.
      MeasurementParseException​(java.lang.Throwable cause)
      Constructs a MeasurementParseException with the specified cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getParsedString()
      Returns the string that was being parsed.
      int getPosition()
      Returns the position where the error was found.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MeasurementParseException

        public MeasurementParseException​(java.lang.String message,
                                         java.lang.CharSequence parsedData,
                                         int position)
        Constructs a MeasurementParseException with the specified detail message, parsed text and index. A detail message is a String that describes this particular exception.
        Parameters:
        message - the detail message
        parsedData - the parsed text, should not be null
        position - the position where the error was found while parsing.
      • MeasurementParseException

        public MeasurementParseException​(java.lang.CharSequence parsedData,
                                         int position)
        Constructs a MeasurementParseException with the parsed text and offset. A detail message is a String that describes this particular exception.
        Parameters:
        parsedData - the parsed text, should not be null
        position - the position where the error is found while parsing.
      • MeasurementParseException

        public MeasurementParseException​(java.lang.Throwable cause)
        Constructs a MeasurementParseException with the specified cause.
        Parameters:
        cause - the root cause
      • MeasurementParseException

        public MeasurementParseException​(java.lang.String message)
        Constructs a MeasurementParseException with the specified detail message.
        Parameters:
        message - the detail message
    • Method Detail

      • getPosition

        public int getPosition()
        Returns the position where the error was found.
        Returns:
        the position of the error
      • getParsedString

        public java.lang.String getParsedString()
        Returns the string that was being parsed.
        Returns:
        the parsed string, or null, if null was passed as input.