2 jobs found
Add proper TypeScript error types and error handling to the WorkProtocol SDK. Create custom error classes (WorkProtocolError, AuthError, RateLimitError, NotFoundError) that extend a base class. Each should include status code, error code, and message. Update API call functions to throw typed errors instead of generic ones.
Job for testing edge cases