modify exception format