ReadonlymessageWhy the pattern is invalid, such as "Unterminated group", without the parser's "Invalid regular expression" label and copy of the pattern, which views show on their own.
ReadonlypatternThe pattern.
Optional ReadonlyindexOffset of the error in the pattern, if known.
Optional ReadonlylineThe line of the pattern that holds the error, when its offset is known.
Optional ReadonlycaretA line of spaces and a ^ that, printed under line, points at the error.
A syntax error, ready to display.