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

Error Handling #5

Closed
skeggse opened this issue Mar 20, 2013 · 3 comments
Closed

Error Handling #5

skeggse opened this issue Mar 20, 2013 · 3 comments

Comments

@skeggse
Copy link
Contributor

skeggse commented Mar 20, 2013

Error handling is currently minimal or non-existent. For example, if you accidentally pass something that isn't a Number to fadeToRGB, something throws the following error:

Terminate called after throwing an instance of "jsexception"

Node shouldn't crash this wildly in this event, and the error should be catchable.

@skeggse
Copy link
Contributor Author

skeggse commented Mar 20, 2013

For the purposes of typechecking/casting, what type should the on parameter to blink1.serverDown and the position parameter to the patternLine methods be?

@skeggse skeggse mentioned this issue Mar 20, 2013
@sandeepmistry
Copy link
Owner

The on parameter should have a type of boolean for blink1.serverDown.

The position parameter should have a type of integer and a range of 0 to 11 for patternLine

@skeggse
Copy link
Contributor Author

skeggse commented Mar 28, 2013

I'm guessing the play parameter for blink1.play should be a boolean.

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

2 participants