Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make StorageError initializer public #5

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

AngCosmin
Copy link
Contributor

I made the initializer from StorageError public so it can be used from outside of the package. This allows developers to make wrappers over certain functions and they can return StorageError as result if needed.

For example, I've created this extension over StorageFileApi and I would like to return StorageError if I cannot convert UIImage to Data
image

@grdsdev grdsdev merged commit ebb1ee7 into supabase-community:main Apr 12, 2022
@grdsdev
Copy link
Contributor

grdsdev commented Apr 12, 2022

Thanks @AngCosmin

@AngCosmin AngCosmin deleted the patch-1 branch April 13, 2022 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants