Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | id: ts-empty-catch |
| 2 | valid: |
| 3 | - 'try { work(); } catch (error) { throw error; }' |
| 4 | - 'try { work(); } catch { return undefined; }' |
| 5 | - 'try { work(); } catch (error: unknown) { report(error); }' |
| 6 | invalid: |
| 7 | - 'try { work(); } catch {}' |
| 8 | - 'try { work(); } catch (error) {}' |
| 9 | - 'try { work(); } catch { /* ignore */ }' |
| 10 | - 'try { work(); } catch (error: unknown) {}' |
| 11 | - 'try { work(); } catch (error: any) { /* ignore */ }' |