Class ErrorContractException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.core.exception.HttpResponseException
com.azure.analytics.synapse.artifacts.models.ErrorContractException
All Implemented Interfaces:
Serializable

public final class ErrorContractException extends com.azure.core.exception.HttpResponseException
Exception thrown for an invalid response with ErrorContract information.
See Also:
  • Constructor Details

    • ErrorContractException

      public ErrorContractException(String message, com.azure.core.http.HttpResponse response)
      Initializes a new instance of the ErrorContractException class.
      Parameters:
      message - the exception message or the response content if a message is not available.
      response - the HTTP response.
    • ErrorContractException

      public ErrorContractException(String message, com.azure.core.http.HttpResponse response, ErrorContract value)
      Initializes a new instance of the ErrorContractException class.
      Parameters:
      message - the exception message or the response content if a message is not available.
      response - the HTTP response.
      value - the deserialized response value.
  • Method Details

    • getValue

      public ErrorContract getValue()
      Overrides:
      getValue in class com.azure.core.exception.HttpResponseException