Skip to content

Error Handling

v2rayroot edited this page Jun 14, 2026 · 1 revision

Error Handling

V2Root Core uses several result styles.

API Error form
Start, Stop Non-null allocated text
Validation/stats/assets JSON object containing error
Parser/converter Allocated empty string
Latency Per-item ERROR, -1, or [ERROR]...

Wrapper Strategy

  1. Copy and release the native result immediately.
  2. Normalize results into one host-language result/exception type.
  3. Preserve the original message for diagnostics.
  4. Avoid matching full error strings.
  5. Include version metadata in support reports.

Sensitive Data

Do not include complete share URIs, UUIDs, passwords, REALITY keys, or raw configurations in telemetry by default.

Clone this wiki locally