Class ServiceUnavailableException

    • Constructor Detail

      • ServiceUnavailableException

        public ServiceUnavailableException​(String message)
        Constructs a new ServiceUnavailableException with the specified error message.
        Parameters:
        message - Describes the error encountered.
    • Method Detail

      • setType

        public void setType​(String type)

        Server

        Parameters:
        type - Server
      • getType

        public String getType()

        Server

        Returns:
        Server
      • withType

        public ServiceUnavailableException withType​(String type)

        Server

        Parameters:
        type - Server
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCode

        public void setCode​(String code)

        500 Internal Server Error

        Parameters:
        code - 500 Internal Server Error
      • getCode

        public String getCode()

        500 Internal Server Error

        Returns:
        500 Internal Server Error
      • withCode

        public ServiceUnavailableException withCode​(String code)

        500 Internal Server Error

        Parameters:
        code - 500 Internal Server Error
        Returns:
        Returns a reference to this object so that method calls can be chained together.