Base error class for all errors thrown by the @cleverbrush/web client.
@cleverbrush/web
Provides a common prototype chain so consumers can catch any client error with a single instanceof WebError check.
instanceof WebError
try { await client.todos.list();} catch (err) { if (err instanceof WebError) { console.log('Client error:', err.message); }} Copy
try { await client.todos.list();} catch (err) { if (err instanceof WebError) { console.log('Client error:', err.message); }}
Optional
Base error class for all errors thrown by the
@cleverbrush/webclient.Provides a common prototype chain so consumers can catch any client error with a single
instanceof WebErrorcheck.Example