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

me.legrange.mikrotik.impl.Error Maven / Gradle / Ivy

package me.legrange.mikrotik.impl;

/**
 * Used to encapsulate API error information. We need to pass both the message and the tag (if one was used).
 *
 * @author GideonLeGrange
 */
class Error extends Response {

    private String message;
    private int category;

    Error(String tag, String message, int category) {
        super(tag);
        this.message = message;
    }

    Error() {
        super(null);
    }

    String getMessage() {
        return message;
    }

    void setMessage(String message) {
        this.message = message;
    }

    int getCategory() {
        return category;
    }

    void setCategory(int category) {
        this.category = category;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy