JsonError.this

this(size_t line, size_t column, string message, JsonErrorCode code = JsonErrorCode.UNKNOWN, size_t index = 0, string context = "") @safe

Construct an error report.

Parameters

line1-based line number where the error occurred.
column1-based column number where the error occurred.
messageHuman-readable error message.
codeMachine-readable error category.
index0-based byte offset into the original input.
contextSource excerpt with caret highlighting the error position.