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

com.testdroid.api.APIExceptionMessage Maven / Gradle / Ivy

package com.testdroid.api;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * Class used to return body of API response with exception
 *
 * @author Łukasz Kajda 
 */
public class APIExceptionMessage extends APIMessage {

    private Integer statusCode;

    public APIExceptionMessage() {
    }

    public APIExceptionMessage(Integer statusCode, String message) {
        super(message);
        this.statusCode = statusCode;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("message", getMessage())
                .append("statusCode", statusCode)
                .toString();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy