()
| 2230 | export const YieldableError: new(message?: string, options?: ErrorOptions) => Cause.YieldableError = (function() { |
| 2231 | class YieldableError extends globalThis.Error { |
| 2232 | commit() { |
| 2233 | return fail(this) |
| 2234 | } |
| 2235 | toJSON() { |
| 2236 | const obj = { ...this } |
| 2237 | if (this.message) obj.message = this.message |