print debug trace

This commit is contained in:
Sola
2015-12-11 16:46:20 +08:00
parent adfaa74084
commit aee20b36ec

View File

@@ -74,9 +74,11 @@ public class TicketSubmit extends HttpServlet {
} catch (NumberFormatException e) {
return new Response(Response.ResponseCode.ILLEGAL_PARAMETER);
} catch (HibernateException e) {
e.printStackTrace();
return new Response(Response.ResponseCode.DATABASE_ERROR);
} catch (Exception e) {
return new Response(Response.ResponseCode.INTERNAL_ERROR);
e.printStackTrace();
return new Response(Response.ResponseCode.INTERNAL_ERROR, e);
}
}