Closed Burgestrand closed 12 years ago
That’s a long list, and there’s more methods in libspotify that already have some kind of error handling. Will probably add bang methods to the Spotify gem for all methods that return an error, which will be the equivalent of the non-bang version except it raises automatically.
The base for this is in place. Just need to review every single one of these methods now.
Most of these methods always return the same error code, and not all of them make sense to raise an error when the operation fails. I’m not quite sure where my stand on exceptions for some of these methods is.
List of functions that actually need treatment:
Not quite sure what to do about release, since it gets called as a result of ruby GC. Then again, it’d be nice to know if it fails (because it shouldn’t!).