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

JavaVertXServer.MainApiException.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
package {{rootPackage}};

public class MainApiException extends Exception {
    private int statusCode;
    private String statusMessage;

    public MainApiException(int statusCode, String statusMessage) {
        super();
        this.statusCode = statusCode;
        this.statusMessage = statusMessage;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public String getStatusMessage() {
        return statusMessage;
    }

    public static final MainApiException INTERNAL_SERVER_ERROR = new MainApiException(500, "Internal Server Error");
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy