Download .opencode/node_modules/effect/src/unstable/rpc/RpcClientError.ts from Chenloong999/opencode-data: direct link, hf CLI and curl.
- Browser
- Download file 1 kB
-
https://huggingface.co/datasets/Chenloong999/opencode-data/resolve/84c8581d284a6a73a22921151ea3d89e2bcfe44e/.opencode/node_modules/effect/src/unstable/rpc/RpcClientError.ts
- Command line
-
hf download hf://datasets/Chenloong999/opencode-data@84c8581d284a6a73a22921151ea3d89e2bcfe44e/.opencode/node_modules/effect/src/unstable/rpc/RpcClientError.ts
-
curl -L -o RpcClientError.ts https://huggingface.co/datasets/Chenloong999/opencode-data/resolve/84c8581d284a6a73a22921151ea3d89e2bcfe44e/.opencode/node_modules/effect/src/unstable/rpc/RpcClientError.ts
1 kB
| /** | |
| * @since 4.0.0 | |
| */ | |
| import * as Schema from "../../Schema.ts" | |
| import { HttpClientErrorSchema } from "../http/HttpClientError.ts" | |
| import { SocketErrorReason } from "../socket/Socket.ts" | |
| import { WorkerErrorReason } from "../workers/WorkerError.ts" | |
| const TypeId = "~effect/rpc/RpcClientError" | |
| /** | |
| * @since 4.0.0 | |
| * @category Errors | |
| */ | |
| export class RpcClientDefect extends Schema.ErrorClass<RpcClientDefect>("effect/rpc/RpcClientError/RpcClientDefect")({ | |
| _tag: Schema.tag("RpcClientDefect"), | |
| message: Schema.String, | |
| cause: Schema.Defect | |
| }) {} | |
| /** | |
| * @since 4.0.0 | |
| * @category Errors | |
| */ | |
| export class RpcClientError extends Schema.ErrorClass<RpcClientError>(TypeId)({ | |
| _tag: Schema.tag("RpcClientError"), | |
| reason: Schema.Union([ | |
| WorkerErrorReason, | |
| SocketErrorReason, | |
| HttpClientErrorSchema, | |
| RpcClientDefect | |
| ]) | |
| }) { | |
| /** | |
| * @since 4.0.0 | |
| */ | |
| readonly [TypeId] = TypeId | |
| override get message(): string { | |
| return `${this.reason._tag}: ${this.reason.message}` | |
| } | |
| } | |