Can We Do Better Java Lang Illegalargumentexception

Can We Do Better Java Lang Illegalargumentexception