Class ArgumentParseException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String annotatedPosition()
      Return a string pointing to the position of the arguments when this exception occurs.
      @Nullable Component componentMessage()
      Returns the text message for this exception, or null if nothing is present.
      int position()
      Gets the position of the last fetched argument in the provided source string.
      java.lang.String sourceString()
      Returns the source string arguments are being parsed from.
      @Nullable Component superText()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, 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

      • ArgumentParseException

        public ArgumentParseException​(@Nullable Component message,
                                      java.lang.String source,
                                      int position)
        Return a new ArgumentParseException with the given message, source and position.
        Parameters:
        message - The message to use for this exception
        source - The source string being parsed
        position - The current position in the source string
      • ArgumentParseException

        public ArgumentParseException​(@Nullable Component message,
                                      java.lang.Throwable cause,
                                      java.lang.String source,
                                      int position)
        Return a new ArgumentParseException with the given message, cause, source and position.
        Parameters:
        message - The message to use for this exception
        cause - The cause for this exception
        source - The source string being parsed
        position - The current position in the source string
    • Method Detail

      • superText

        public @Nullable Component superText()
      • annotatedPosition

        public java.lang.String annotatedPosition()
        Return a string pointing to the position of the arguments when this exception occurs.
        Returns:
        The appropriate position string
      • position

        public int position()
        Gets the position of the last fetched argument in the provided source string.
        Returns:
        The source string to get position for
      • sourceString

        public java.lang.String sourceString()
        Returns the source string arguments are being parsed from.
        Returns:
        The source string