/**
 * OpenAPI Petstore
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

package org.openapitools.client.api;

import jakarta.ws.rs.core.Response;

public class ApiException extends Exception {
    private static final long serialVersionUID = 1L;

    private final Response response;

    public ApiException(Response response) {
        super("Api response has status code " + response.getStatus());
        this.response = response;
    }

    public Response getResponse() {
        return this.response;
    }
}
