change ex.message to ex.tostring()