Document ValueError on invalid constants