33 if (
string.IsNullOrEmpty(
Option)) {
34 return base.ToString();
36 return $
"Error occurred while parsing { Option }: { Message }";
Generic exception class that is thrown when the parser is not configured to ignore errors.
override string ToString()
ParseException(string? optString, string msg)
Specialsied exception constructor; accepts the option causing the error and an accompanying message.
ParseException(string msg)
Generic exception constructor; only accepts the error message.
Represents a single long option for getopt.