Create a new InvalidInputError instance with the given input,
optionally providing a detail parameter to describe why parsing failed.
The detail parameter will be included in the error message if provided.
The input that could not be parsed
Optional detail: stringA more detailed description of the error
Private _detailAn optional detailed description of the reason why parsing failed.
Private _inputThe input that could not be parsed.
Optional causeOptional stackStatic Optional prepareOptional override for formatting stack traces
Static stackGet the detail explaining why parsing failed. If no detail was provided, it will return an empty string.
The detail string.
Get the original input that could not be parsed.
The input string.
Static capture
Error thrown when the input cannot be parsed to a date or duration. It optionally accepts a
detailparameter that can be used to provide more information about why parsing failed.