# ServiceUnavailableException

com.google.api.server.spi.response

## Class ServiceUnavailableException

- java.lang.Object
-
  - ServiceException
  -
    - com.google.api.server.spi.response.ServiceUnavailableException

-

  *** ** * ** ***

  <br />

  ```
  public class ServiceUnavailableException
  extends ServiceException
  ```
  Service Unavailable response for the API, mapped to a HTTP 503 response.
-
  -

    ### Constructor Summary

    | Constructor and Description |
    |---|
    | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html#ServiceUnavailableException-java.lang.String-(java.lang.String message)` |
    | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html#ServiceUnavailableException-java.lang.String-java.lang.String-(java.lang.String statusMessage, java.lang.String reason)` |
    | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html#ServiceUnavailableException-java.lang.String-java.lang.String-java.lang.String-(java.lang.String statusMessage, java.lang.String reason, java.lang.String domain)` |
    | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html#ServiceUnavailableException-java.lang.String-java.lang.String-java.lang.String-java.lang.Throwable-(java.lang.String statusMessage, java.lang.String reason, java.lang.String domain, java.lang.Throwable cause)` |
    | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html#ServiceUnavailableException-java.lang.String-java.lang.String-java.lang.Throwable-(java.lang.String statusMessage, java.lang.String reason, java.lang.Throwable cause)` |
    | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html#ServiceUnavailableException-java.lang.String-java.lang.Throwable-(java.lang.String message, java.lang.Throwable cause)` |
    | `https://docs.cloud.google.com/endpoints/docs/frameworks/java/javadoc/com/google/api/server/spi/response/ServiceUnavailableException.html#ServiceUnavailableException-java.lang.Throwable-(java.lang.Throwable cause)` |
    [Constructors]

  <!-- -->

  -

    ### Method Summary

    -

      ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
-
  -

    ### Constructor Detail


    -

      #### ServiceUnavailableException

      ```
      public ServiceUnavailableException(java.lang.String message)
      ```


    -

      #### ServiceUnavailableException

      ```
      public ServiceUnavailableException(java.lang.Throwable cause)
      ```


    -

      #### ServiceUnavailableException

      ```
      public ServiceUnavailableException(java.lang.String message,
                                         java.lang.Throwable cause)
      ```


    -

      #### ServiceUnavailableException

      ```
      public ServiceUnavailableException(java.lang.String statusMessage,
                                         java.lang.String reason)
      ```


    -

      #### ServiceUnavailableException

      ```
      public ServiceUnavailableException(java.lang.String statusMessage,
                                         java.lang.String reason,
                                         java.lang.Throwable cause)
      ```


    -

      #### ServiceUnavailableException

      ```
      public ServiceUnavailableException(java.lang.String statusMessage,
                                         java.lang.String reason,
                                         java.lang.String domain)
      ```


    -

      #### ServiceUnavailableException

      ```
      public ServiceUnavailableException(java.lang.String statusMessage,
                                         java.lang.String reason,
                                         java.lang.String domain,
                                         java.lang.Throwable cause)
      ```