All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.oas.inflector.utils.ApiException Maven / Gradle / Ivy

There is a newer version: 2.0.12
Show newest version
package io.swagger.oas.inflector.utils;

import io.swagger.oas.inflector.models.ApiError;

public class ApiException extends RuntimeException {
  private static final long serialVersionUID = -753474495606091043L;

  private ApiError error;

  public ApiException() {
  }

  public ApiException(ApiError error) {
	super(error.getMessage());
	this.error = error;
  }

  public ApiException(ApiError error, Throwable cause) {
	super(error.getMessage(), cause);
	this.error = error;
  }
  
  public ApiError getError() {
    return error;
  }

  public void setError(ApiError error) {
    this.error = error;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy