Class ApiException

  • All Implemented Interfaces:
    java.io.Serializable

    @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-05-19T15:04:32.581406+03:00[Europe/Athens]")
    public class ApiException
    extends java.lang.Exception

    ApiException class.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiException()
      Constructor for ApiException.
      ApiException​(int code, java.lang.String message)
      Constructor for ApiException.
      ApiException​(int code, java.lang.String message, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)
      Constructor for ApiException.
      ApiException​(int code, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)
      Constructor for ApiException.
      ApiException​(java.lang.String message)
      Constructor for ApiException.
      ApiException​(java.lang.String message, int code, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)
      Constructor for ApiException.
      ApiException​(java.lang.String message, java.lang.Throwable throwable, int code, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders)
      Constructor for ApiException.
      ApiException​(java.lang.String message, java.lang.Throwable throwable, int code, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders, java.lang.String responseBody)
      Constructor for ApiException.
      ApiException​(java.lang.Throwable throwable)
      Constructor for ApiException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCode()
      Get the HTTP status code.
      java.lang.String getResponseBody()
      Get the HTTP response body.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getResponseHeaders()
      Get the HTTP response headers.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ApiException

        public ApiException()

        Constructor for ApiException.

      • ApiException

        public ApiException​(java.lang.Throwable throwable)

        Constructor for ApiException.

        Parameters:
        throwable - a Throwable object
      • ApiException

        public ApiException​(java.lang.String message)

        Constructor for ApiException.

        Parameters:
        message - the error message
      • ApiException

        public ApiException​(java.lang.String message,
                            java.lang.Throwable throwable,
                            int code,
                            java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders,
                            java.lang.String responseBody)

        Constructor for ApiException.

        Parameters:
        message - the error message
        throwable - a Throwable object
        code - HTTP status code
        responseHeaders - a Map of HTTP response headers
        responseBody - the response body
      • ApiException

        public ApiException​(java.lang.String message,
                            int code,
                            java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders,
                            java.lang.String responseBody)

        Constructor for ApiException.

        Parameters:
        message - the error message
        code - HTTP status code
        responseHeaders - a Map of HTTP response headers
        responseBody - the response body
      • ApiException

        public ApiException​(java.lang.String message,
                            java.lang.Throwable throwable,
                            int code,
                            java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders)

        Constructor for ApiException.

        Parameters:
        message - the error message
        throwable - a Throwable object
        code - HTTP status code
        responseHeaders - a Map of HTTP response headers
      • ApiException

        public ApiException​(int code,
                            java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders,
                            java.lang.String responseBody)

        Constructor for ApiException.

        Parameters:
        code - HTTP status code
        responseHeaders - a Map of HTTP response headers
        responseBody - the response body
      • ApiException

        public ApiException​(int code,
                            java.lang.String message)

        Constructor for ApiException.

        Parameters:
        code - HTTP status code
        message - a String object
      • ApiException

        public ApiException​(int code,
                            java.lang.String message,
                            java.util.Map<java.lang.String,​java.util.List<java.lang.String>> responseHeaders,
                            java.lang.String responseBody)

        Constructor for ApiException.

        Parameters:
        code - HTTP status code
        message - the error message
        responseHeaders - a Map of HTTP response headers
        responseBody - the response body
    • Method Detail

      • getCode

        public int getCode()
        Get the HTTP status code.
        Returns:
        HTTP status code
      • getResponseHeaders

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getResponseHeaders()
        Get the HTTP response headers.
        Returns:
        A map of list of string
      • getResponseBody

        public java.lang.String getResponseBody()
        Get the HTTP response body.
        Returns:
        Response body in the form of string