Class SystemUnavailableResponse

java.lang.Object
africa.absa.inception.oauth2.server.authorization.controller.Response
africa.absa.inception.oauth2.server.authorization.controller.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 Details

    • 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 Details

    • getBody

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