Skip to content
Woolf Help Center home
InboxAsk a human

SDK Error Handling

When using the Woolf SDK, errors are returned as JavaScript exceptions with the WoolfError class. These include a message and error code.

[@woolfuniversity/sdk] WoolfError: STUDENT_NOT_FOUND

Catch these errors in your integration and handle them accordingly:

try { await woolf.trackSubmission("resourceId"); } catch (err) { if (err instanceof WoolfError) { console.error("SDK Error:", err.message); } }

Explore More