// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package tsptest.armstreamstyleserialization.models;

import com.azure.core.http.HttpResponse;
import com.azure.core.management.exception.ManagementException;

/**
 * Exception thrown for an invalid response with ErrorMax information.
 */
public final class ErrorMaxException extends ManagementException {
    /**
     * Initializes a new instance of the ErrorMaxException class.
     * 
     * @param message the exception message or the response content if a message is not available.
     * @param response the HTTP response.
     */
    public ErrorMaxException(String message, HttpResponse response) {
        super(message, response);
    }

    /**
     * Initializes a new instance of the ErrorMaxException class.
     * 
     * @param message the exception message or the response content if a message is not available.
     * @param response the HTTP response.
     * @param value the deserialized response value.
     */
    public ErrorMaxException(String message, HttpResponse response, ErrorMax value) {
        super(message, response, value);
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public ErrorMax getValue() {
        return (ErrorMax) super.getValue();
    }
}
