| 50 | * @since 4.0.0 |
| 51 | */ |
| 52 | export 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. |