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

com.vk.api.sdk.exceptions.ApiException Maven / Gradle / Ivy

Go to download

Java library for VK API interaction, includes OAuth 2.0 authorization and API methods.

The newest version!
package com.vk.api.sdk.exceptions;

public class ApiException extends Exception {

    private String description;

    private String message;

    private Integer code;

    public ApiException(Integer code, String description, String message) {
        this.description = description;
        this.code = code;
        this.message = message;
    }

    public ApiException(Integer code, String message) {
       this(code, "Unknown", message);
    }

    public ApiException(String message) {
        this(0, "Unknown", message);
    }

    public String getDescription() {
        return description;
    }

    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return description + " (" + code + "): " + message;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy