| 1422 | |
| 1423 | it.effect("error from plain text", () => { |
| 1424 | class RateLimitError extends Schema.Error<RateLimitError>("RateLimitError")({ |
| 1425 | _tag: Schema.tag("RateLimitError"), |
| 1426 | message: Schema.String |
| 1427 | }) {} |
| 1428 | |
| 1429 | const RateLimitErrorSchema = Schema.String.pipe( |
| 1430 | Schema.decodeTo( |