Package org.ec4j.core.parser
Class ErrorEvent
java.lang.Object
org.ec4j.core.parser.Span
org.ec4j.core.parser.ErrorEvent
An occurrence of syntax error or other error in an
.editorconfig file.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA way to keep apart various kinds of errors in a type safe way.Nested classes/interfaces inherited from class org.ec4j.core.parser.Span
Span.Builder, Span.GlobSpan, Span.NameSpan, Span.ValueSpan -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionErrorEvent(Location start, Location end, Resource resource, String message, ErrorEvent.ErrorType errorType) -
Method Summary
Modifier and TypeMethodDescriptionErrorEvent.ErrorTypeis a way to keep apart various kinds of errors in a type safe way.
-
Field Details
-
errorType
-
message
-
resource
-
-
Constructor Details
-
ErrorEvent
public ErrorEvent(Location start, Location end, Resource resource, String message, ErrorEvent.ErrorType errorType)
-
-
Method Details
-
getErrorType
ErrorEvent.ErrorTypeis a way to keep apart various kinds of errors in a type safe way.- Returns:
- the
ErrorEvent.ErrorType
-
getMessage
- Returns:
- a message describing the error
-
getResource
- Returns:
- the
Resourcewhere thisErrorEventoccurred
-