messgae format, fixing compiler errors in exceptions