Closed AngusMcIntyre closed 5 years ago
Yes, you're absolutely right. throw new Exception...
should not happen in this library.
I think 1 is a nice solution. Create a generic HueException which can be used instead of the new Exception that is used right now, and then we can also create a more specific LinkButtonNotPressedException for this case.
If you can create a PR, I'd be happy to merge it. Thanks!
Catching
System.Exception
gives me the heebi jeebis. As far as I know, this is required so that user can be informed that a pushlink is required for app/device registration.I believe the solution is either
Q42.HueApi
exception type for this error case orQ42.HueApi
exception type that specifies an error codeShould I submit either of the changes or is there a better way to catch these errors?