Class ForbiddenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ucsb.cs156.diningcachingproxy.errors.ForbiddenException
All Implemented Interfaces:
Serializable

public class ForbiddenException extends RuntimeException
Thrown when a request is refused for a reason the client can fix (e.g. a missing PAT or a repo the stored PAT cannot reach). Mapped to a 403 response carrying the message, so the frontend can show it to the user.
See Also:
  • Constructor Details

    • ForbiddenException

      public ForbiddenException(String message)