Creates an instance of _StringOrRegexIsWrong.
This error is thrown when there is something wrong with a regular expression.
Optional
causeReadonly
customIndicates whether the error is custom.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stackStatic
captureGenerated using TypeDoc
Custom error class for cases where there is an issue with a regular expression.