Interface CodeError.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CodeError.Builder,CodeError>, SdkBuilder<CodeError.Builder,CodeError>, SdkPojo
Enclosing class:
CodeError

public static interface CodeError.Builder extends SdkPojo, CopyableBuilder<CodeError.Builder,CodeError>
  • Method Details

    • errorType

      CodeError.Builder errorType(String errorType)

      The type of code error.

      Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.

      Parameters:
      errorType - The type of code error.

      Examples include, but aren't limited to: LINT_ERROR, PARSER_ERROR.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • value

      CodeError.Builder value(String value)

      A user presentable error.

      Examples include, but aren't limited to: Parsing error: Unterminated string literal.

      Parameters:
      value - A user presentable error.

      Examples include, but aren't limited to: Parsing error: Unterminated string literal.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      The line, column, and span location of the error in the code.

      Parameters:
      location - The line, column, and span location of the error in the code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      The line, column, and span location of the error in the code.

      This is a convenience method that creates an instance of the CodeErrorLocation.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).

      Parameters:
      location - a consumer that will call methods on CodeErrorLocation.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: