Package dev.cel.common.internal
Class Errors.Error
- java.lang.Object
- 
- dev.cel.common.internal.Errors.Error
 
- 
- Enclosing class:
- Errors
 
 @Immutable public static class Errors.Error extends java.lang.ObjectRepresents 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intposition()Returns the code point position assigned to the expression with the error.java.lang.StringrawMessage()Returns the raw error message without the container or line number.java.lang.StringtoDisplayString(@Nullable Errors.ErrorFormatter formatter)Formats the error into a string which indicates where it occurs within the expression.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
positionpublic int position() Returns the code point position assigned to the expression with the error.
 - 
rawMessagepublic java.lang.String rawMessage() Returns the raw error message without the container or line number.
 - 
toDisplayStringpublic java.lang.String toDisplayString(@Nullable Errors.ErrorFormatter formatter) Formats the error into a string which indicates where it occurs within the expression.
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-