(props: {
readonly reason: SocketReadError | SocketWriteError | SocketOpenError | SocketCloseError
})
| 345 | }) { |
| 346 | // @effect-diagnostics-next-line overriddenSchemaConstructor:off |
| 347 | constructor(props: { |
| 348 | readonly reason: SocketReadError | SocketWriteError | SocketOpenError | SocketCloseError |
| 349 | }) { |
| 350 | if ("cause" in props.reason) { |
| 351 | super({ |
| 352 | ...props, |
| 353 | cause: props.reason.cause |
| 354 | } as any) |
| 355 | } else { |
| 356 | super(props) |
| 357 | } |
| 358 | } |
| 359 | |
| 360 | /** |
| 361 | * Marks this value as a socket error wrapper for runtime guards. |
nothing calls this directly
no outgoing calls
no test coverage detected