Class ErrorDetailsException

  • All Implemented Interfaces:
    Serializable

    public final class ErrorDetailsException
    extends com.azure.core.management.exception.ManagementException
    Exception thrown for an invalid response with ErrorDetails information.
    See Also:
    Serialized Form
    • Constructor Detail

      • ErrorDetailsException

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

        public ErrorDetailsException​(String message,
                                     com.azure.core.http.HttpResponse response,
                                     ErrorDetails value)
        Initializes a new instance of the ErrorDetailsException 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 Detail

      • getValue

        public ErrorDetails getValue()
        Overrides:
        getValue in class com.azure.core.management.exception.ManagementException