Class SystemUnavailableResponse


  • public class SystemUnavailableResponse
    extends Response
    The SystemUnavailableResponse class holds the information for a response returned to indicated that the system encountered an error and is unable to process the OAuth2 request.
    Author:
    Marcus Portmann
    • Constructor Detail

      • SystemUnavailableResponse

        public SystemUnavailableResponse​(String message)
        Constructs a new SystemUnavailableResponse.
        Parameters:
        message - the message
      • SystemUnavailableResponse

        public SystemUnavailableResponse​(String message,
                                         Throwable cause)
        Constructs a new SystemUnavailableResponse.
        Parameters:
        message - the message
        cause - the cause
    • Method Detail

      • getBody

        public String getBody()
        Returns the body for the OAuth2 response.
        Specified by:
        getBody in class Response
        Returns:
        the body for the OAuth2 response