Class FluxzeroErrorReport

java.lang.Object
io.fluxzero.sdk.common.exception.FluxzeroErrorReport

public class FluxzeroErrorReport extends Object
Human-readable Fluxzero error report with a stable error code.

Reports are intended for exception messages and logs. They explain what happened, likely causes, concrete recovery steps, and contextual values that help developers fix the issue without having to inspect the SDK internals first.

  • Constructor Details

    • FluxzeroErrorReport

      public FluxzeroErrorReport()
  • Method Details

    • builder

      public static FluxzeroErrorReport.Builder builder(FluxzeroErrorCode code, String title)
      Creates a builder for a report with the given code and title.
    • getErrorCode

      public String getErrorCode()
      Returns the stable machine-readable error code.
    • format

      public String format()
      Formats this report as a multi-line exception message.
    • formatSafely

      public String formatSafely()
      Formats this report as a best-effort exception message.

      If report rendering itself fails, the fallback keeps the stable error code, title, and documentation URL so error reporting does not hide the original SDK failure.

    • toString

      public String toString()
      Overrides:
      toString in class Object