Class Errors.Error

  • Enclosing class:
    Errors

    @Immutable
    public static class Errors.Error
    extends java.lang.Object
    Represents an error. An error is associated with a context, a position, and a message. This information is opaque currently, and the only public method on an error is to convert it into a string.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int position()
      Returns the code point position assigned to the expression with the error.
      java.lang.String rawMessage()
      Returns the raw error message without the container or line number.
      java.lang.String toDisplayString​(@Nullable Errors.ErrorFormatter formatter)
      Formats the error into a string which indicates where it occurs within the expression.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • position

        public int position()
        Returns the code point position assigned to the expression with the error.
      • rawMessage

        public java.lang.String rawMessage()
        Returns the raw error message without the container or line number.
      • toDisplayString

        public java.lang.String toDisplayString​(@Nullable Errors.ErrorFormatter formatter)
        Formats the error into a string which indicates where it occurs within the expression.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object