Method
constructor
({
url,
}: {
url?: string | undefined
} = {})
Source from the content-addressed store, hash-verified
| 124 | export class SocketClosedError extends BaseError { |
| 125 | url: string | undefined |
| 126 | constructor({ |
| 127 | url, |
| 128 | }: { |
| 129 | url?: string | undefined |
| 130 | } = {}) { |
| 131 | super('The socket has been closed.', { |
| 132 | metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean) as string[], |
| 133 | name: 'SocketClosedError', |
| 134 | }) |
| 135 | this.url = url |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | export type TimeoutErrorType = TimeoutError & { |
Callers
nothing calls this directly
Tested by
no test coverage detected