Closed ShookLyngs closed 4 months ago
context
You can now find context in the BtcAssetsApiError if the error was thrown from a request:
BtcAssetsApiError
try { ... } catch (e) { if (e instanceof BtcAssetsApiError) { console.log(e.context?.request); console.log(e.context?.response); } }
This is the type of e.context:
e.context
interface BtcAssetsApiContext { request: { url: string; body?: Record<string, any>; params?: Record<string, any>; }; response: { status: number; data?: Record<string, any> | string; }; }
Changes
context
in the error object of the service libRelated issues
Details
You can now find context in the
BtcAssetsApiError
if the error was thrown from a request:This is the type of
e.context
: