MCPcopy Create free account
hub / github.com/Effect-TS/effect / JsonPatchParseError

Class JsonPatchParseError

packages/tools/openapi-generator/src/OpenApiPatch.ts:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 * @since 4.0.0
51 */
52export class JsonPatchParseError extends Schema.Error<JsonPatchParseError>("JsonPatchParseError")({
53 _tag: Schema.tag("JsonPatchParseError"),
54 source: Schema.String,
55 reason: Schema.String
56}) {
57 override get message() {
58 return `Failed to parse patch from ${this.source}: ${this.reason}`
59 }
60}
61
62/**
63 * Error thrown when a parsed value does not conform to the JSON Patch schema.

Callers

nothing calls this directly

Calls 1

tagMethod · 0.65

Tested by

no test coverage detected