I'd go with B and D too. Throwing the exception is essential, and the message is a nice touch. Although, I have to admit, I'm more of a cat person than a parity person.
Hmm, I'd say B is the way to do it. Might as well give the exception a little flavor with a message, you know? C is just weird, who uses single quotes these days?
Carol
3 months agoMendy
3 months agoJosefa
3 months agoRosina
3 months agoGussie
3 months agoAnnabelle
2 months agoTamra
3 months agoVanesa
3 months agoErick
3 months agoMalika
2 months agoRutha
3 months agoDomonique
3 months agoDomonique
3 months ago