MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

src/errors.ts:88–106  ·  view source on GitHub ↗
(
    message: string,
    filePath: string,
    options?: { line?: number; column?: number; cause?: Error }
  )

Source from the content-addressed store, hash-verified

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/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected