Class DownstreamServiceException

All Implemented Interfaces:
Serializable

public class DownstreamServiceException extends RuntimeException
Signals that a downstream HTTP service did not provide a usable response.
See Also:
  • Constructor Details

    • DownstreamServiceException

      public DownstreamServiceException(String serviceName, org.springframework.http.HttpStatusCode statusCode, String responseBody)
      Creates an exception with downstream service context.
      Parameters:
      serviceName - logical downstream service name
      statusCode - HTTP status returned by the downstream service
      responseBody - summarized response body for diagnostics
  • Method Details

    • getServiceName

      public String getServiceName()
    • getStatusCode

      public int getStatusCode()