Hey All,

I am very interested to start using the Prototype library to write OO Code in the hope to eventually switch from my usual procedural style when doing medium to large projects.

I have just read the section on using Classes on the prototype website, and Im impressed with what Ive read. The only thing is Im wondering how would I handle a situation such as 'invalid' variables being passed to a constructor?

Say I wrote an app which required a variable with the value of 100 or 200, and failing that condition the program must fall over and inform the user why?

I hope that made sense! thanks.