Class ServiceUnavailableException

All Implemented Interfaces:
Serializable

public class ServiceUnavailableException extends AmazonServiceException

Returned if the service cannot complete the request.

See Also:
  • Constructor Details

    • ServiceUnavailableException

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

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