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
2 months agoMendy
2 months agoJosefa
2 months agoRosina
2 months agoGussie
2 months agoAnnabelle
1 months agoTamra
1 months agoVanesa
2 months agoErick
2 months agoMalika
1 months agoRutha
2 months agoDomonique
2 months agoDomonique
2 months ago