JsonError struct with all fields populated._makeError
private fn
JsonError _makeError(const(char)[] src,
const size_t line,
const size_t column,
const size_t index,
const JsonErrorCode code,
const string msg) @safeBuild a structured error with a context window.
This function creates a JsonError with position information and a human-readable message that includes a source excerpt showing where the error occurred.
Parameters
src | The source input buffer. |
line | 1-based line number where the error occurred. |
column | 1-based column number where the error occurred. |
index | 0-based byte offset into the original input. |
code | Machine-readable error category. |
msg | Base error message. |
Returns
A