public static interface CodeError.Builder extends SdkPojo, CopyableBuilder<CodeError.Builder,CodeError>
| Modifier and Type | Method and Description |
|---|---|
CodeError.Builder |
errorType(String errorType)
The type of code error.
|
CodeError.Builder |
location(CodeErrorLocation location)
The line, column, and span location of the error in the code.
|
default CodeError.Builder |
location(Consumer<CodeErrorLocation.Builder> location)
The line, column, and span location of the error in the code.
|
CodeError.Builder |
value(String value)
A user presentable error.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCodeError.Builder errorType(String errorType)
The type of code error.
Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.
errorType - The type of code error.
Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.
CodeError.Builder value(String value)
A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal.
value - A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal.
CodeError.Builder location(CodeErrorLocation location)
The line, column, and span location of the error in the code.
location - The line, column, and span location of the error in the code.default CodeError.Builder location(Consumer<CodeErrorLocation.Builder> location)
The line, column, and span location of the error in the code.
This is a convenience method that creates an instance of theCodeErrorLocation.Builder avoiding the
need to create one manually via CodeErrorLocation.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to location(CodeErrorLocation).
location - a consumer that will call methods on CodeErrorLocation.Builderlocation(CodeErrorLocation)Copyright © 2023. All rights reserved.