(
kind: HttpApiSchemaError["kind"],
effect: Effect.Effect<A, Schema.SchemaError, R>
)
| 742 | } |
| 743 | |
| 744 | static wrap<A, R>( |
| 745 | kind: HttpApiSchemaError["kind"], |
| 746 | effect: Effect.Effect<A, Schema.SchemaError, R> |
| 747 | ): Effect.Effect<A, HttpApiSchemaError, R> { |
| 748 | // Decoders return completed Exit values for synchronous results, so map |
| 749 | // eagerly and skip the error wrapper when nothing remains to run. |
| 750 | return Effect.mapErrorEager(effect, (error) => new HttpApiSchemaError({ kind, cause: error })) |
| 751 | } |
| 752 | |
| 753 | readonly name = "HttpApiSchemaError" |
| 754 | readonly message = this.kind; |
no outgoing calls