MCPcopy Create free account
hub / github.com/clintonwoo/hackernews-react-graphql / ValidationError

Class ValidationError

src/data/validation/validation-error.ts:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4}
5
6export class ValidationError extends Error {
7 public code: ValidationCode;
8
9 constructor(err) {
10 super(err.message);
11
12 this.code = err.code;
13
14 Error.captureStackTrace(this, ValidationError);
15 }
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected