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

Add custom error type #8

Closed
tomlokhorst opened this issue Apr 16, 2015 · 2 comments
Closed

Add custom error type #8

tomlokhorst opened this issue Apr 16, 2015 · 2 comments

Comments

@tomlokhorst
Copy link
Owner

Currently (2015-04-16) Promissum only uses NSError for errors.

By changing the type Promise<T> to Promise<Value, Error> a custom error type can be provided.

This would allow for more type-safe, fine grained error handling.

@tomlokhorst
Copy link
Owner Author

For reference, this is being worked on in the feature/error-type branch.

@tomlokhorst
Copy link
Owner Author

This is now in the Swift 2 branch #9.
To be merged when Swift 2 is out of beta.

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

No branches or pull requests

1 participant