add error/exception code in math package