You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in fact, every method on the collection can throw a ClientResponseError error, which is fine, but I would expect such information in the code to catch such errors.
I would therefore expect an annotation for such methods
@throws {ClientResponseError}
What do you think?
(For example, such an error can occur if I do not have a server with Pocketbase running. In short, all calls must be wrapped in a try-catch.)
The text was updated successfully, but these errors were encountered:
Hi, according to the documentation
https://github.com/pocketbase/js-sdk?tab=readme-ov-file#error-handling
in fact, every method on the collection can throw a
ClientResponseError
error, which is fine, but I would expect such information in the code to catch such errors.I would therefore expect an annotation for such methods
@throws {ClientResponseError}
What do you think?
(For example, such an error can occur if I do not have a server with Pocketbase running. In short, all calls must be wrapped in a try-catch.)
The text was updated successfully, but these errors were encountered: