@datapos/datapos-shared
    Preparing search index...

    Function serialiseError

    • Serializes an error and its cause chain into a flat structure.

      • Errors are ordered from outermost to root cause.
      • Cycles in the cause chain are safely ignored.
      • Messages are normalized to end with punctuation.

      Parameters

      • Optionalerror: unknown

      Returns SerialisedError[]