DocoptArgumentError.this

this(string msg, string file = __FILE__, size_t line = __LINE__) @safe

Constructs a DocoptArgumentError with the given message.

Parameters

msgThe error message describing the argument error.
fileThe source file where the error originated.
lineThe line number where the error originated.
this(string expected, string got, size_t position, const string[] argv, string file = __FILE__, size_t line = __LINE__) @safe

Constructs 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

expectedA short description of what was expected (e.g., usage or pattern).
gotThe actual token or input that caused the error.
positionIndex within argv where the mismatch happened (0-based).
argvThe full argv snapshot used for parsing.
fileThe source file where the error originated.
lineThe source line where the error originated.