Error Handling #5

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

Projects

None yet

2 participants

@skeggse
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
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 referenced this issue Mar 20, 2013
Closed

Update blink1.js #7

@sandeepmistry
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
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