JoyOfCodingPDX / JoyOfCoding

Source code for The Joy of Coding course at Portland State University taught by David Whitlock
http://web.cecs.pdx.edu/~whitlock/
Apache License 2.0
17 stars 5 forks source link

RestException stack trace should print out HTTP status code #454

Closed DavidWhitlock closed 6 months ago

DavidWhitlock commented 8 months ago

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)