Package xsbti

Interface DiagnosticCode


public interface DiagnosticCode
A DiagnosticCode is a unique identifier that the compiler can associate with a diagnostic. This is useful for tools to be able to quickly identify what diagnostic is being reported without having to rely on parsing the actual diagnostic message, which might not be stable.
  • Method Summary

    Modifier and Type
    Method
    Description
    The unique code.
    Possible explanation to explain the meaning of the code
  • Method Details

    • code

      String code()
      The unique code. This is typically in the format of E000
    • explanation

      Optional<String> explanation()
      Possible explanation to explain the meaning of the code