JoyOfCoding icon indicating copy to clipboard operation
JoyOfCoding copied to clipboard

RestException stack trace should print out HTTP status code

Open DavidWhitlock opened this issue 11 months ago • 0 comments

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)

DavidWhitlock avatar Mar 09 '24 15:03 DavidWhitlock