trace in exception catch api rest