DocoptArgumentError.this
this
(string msg, string file = __FILE__, size_t line = __LINE__) @safeConstructs a DocoptArgumentError with the given message.
Parameters
msg | The error message describing the argument error. |
file | The source file where the error originated. |
line | The line number where the error originated. |
this
(string expected, string got, size_t position, const string[] argv,
string file = __FILE__, size_t line = __LINE__) @safeConstructs a DocoptArgumentError with contextual information.
The final message is formatted to include the key context data, while individual fields can be queried programmatically via accessors.
Parameters
expected | A short description of what was expected (e.g., usage or pattern). |
got | The actual token or input that caused the error. |
position | Index within argv where the mismatch happened (0-based). |
argv | The full argv snapshot used for parsing. |
file | The source file where the error originated. |
line | The source line where the error originated. |