JoyOfCoding
JoyOfCoding copied to clipboard
RestException stack trace should print out HTTP status code
While grading the REST project, I noticed that the stack trace for the RestException
does not print out the HTTP status code. That makes it difficult to understand what happened.
Exception in thread "main" edu.pdx.cs410J.web.HttpRequestHelper$RestException:
at edu.pdx.cs410J.student.AppointmentBookRestClient.throwExceptionIfNotOkayHttpStatus(AppointmentBookRestClient.java:53)
at edu.pdx.cs410J.student.AppointmentBookRestClient.getAppointmentBook(AppointmentBookRestClient.java:70)
at edu.pdx.cs410J.student.Project5.main(Project5.java:65)