Exception message on boolean type