Another thing, in the methods all the errors are t...
# support-questions-legacy
r
> Another thing, in the methods all the errors are thrown which I think would be catched by the supertokens error handler, how can I achieve that You would need to generate an error using the supertokens error functions. You can see an example of this here: - https://github.com/supertokens/supertokens-node/blob/master/lib/ts/recipe/emailpassword/coreAPICalls.ts#L55 - There is also
GENERAL_ERROR
(example here: https://github.com/supertokens/supertokens-node/blob/master/lib/ts/recipe/emailpassword/api/signin.ts#L63), which if thrown passes the
err
object to your error handler.