(
message: string,
filePath: string,
options?: { line?: number; column?: number; cause?: Error }
)
| 86 | readonly column?: number; |
| 87 | |
| 88 | constructor( |
| 89 | message: string, |
| 90 | filePath: string, |
| 91 | options?: { line?: number; column?: number; cause?: Error } |
| 92 | ) { |
| 93 | super(message, 'PARSE_ERROR', { |
| 94 | filePath, |
| 95 | line: options?.line, |
| 96 | column: options?.column, |
| 97 | cause: options?.cause?.message, |
| 98 | }); |
| 99 | this.name = 'ParseError'; |
| 100 | this.filePath = filePath; |
| 101 | this.line = options?.line; |
| 102 | this.column = options?.column; |
| 103 | if (options?.cause) { |
| 104 | this.cause = options.cause; |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected