public class

HttpServerErrorException

extends HttpStatusCodeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.web.client.RestClientException
             ↳ org.springframework.web.client.HttpStatusCodeException
               ↳ org.springframework.web.client.HttpServerErrorException

Class Overview

Exception thrown when an HTTP 5xx is received.

Summary

Public Constructors
HttpServerErrorException(HttpStatus statusCode)
Construct a new instance of HttpServerErrorException based on a HttpStatus.
HttpServerErrorException(HttpStatus statusCode, String statusText)
Construct a new instance of HttpServerErrorException based on a HttpStatus and status text.
HttpServerErrorException(HttpStatus statusCode, String statusText, byte[] responseBody, Charset responseCharset)
Construct a new instance of HttpServerErrorException based on a HttpStatus, status text, and response body content.
[Expand]
Inherited Methods
From class org.springframework.web.client.HttpStatusCodeException
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public HttpServerErrorException (HttpStatus statusCode)

Construct a new instance of HttpServerErrorException based on a HttpStatus.

Parameters
statusCode the status code

public HttpServerErrorException (HttpStatus statusCode, String statusText)

Construct a new instance of HttpServerErrorException based on a HttpStatus and status text.

Parameters
statusCode the status code
statusText the status text

public HttpServerErrorException (HttpStatus statusCode, String statusText, byte[] responseBody, Charset responseCharset)

Construct a new instance of HttpServerErrorException based on a HttpStatus, status text, and response body content.

Parameters
statusCode the status code
statusText the status text
responseBody the response body content, may be null
responseCharset the response body charset, may be null