Results 1 to 9 of 9
Feb 11, 2012, 10:58 #1
- Join Date
- Jul 2008
- Somerset, England
- 0 Post(s)
- 0 Thread(s)
Prototype Class and Error Catching
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.