MCPcopy Create free account
hub / github.com/did-method-plc/did-method-plc / fromAxiosError

Method fromAxiosError

packages/lib/src/client.ts:157–163  ·  view source on GitHub ↗
(err: AxiosError)

Source from the content-addressed store, hash-verified

155 super(message)
156 }
157
158 static fromAxiosError(err: AxiosError) {
159 return new PlcClientError(
160 err.response?.status || 500,
161 err.response?.data,
162 err.message,
163 )
164 }
165}
166

Callers 2

makeGetReqMethod · 0.80
sendOperationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected