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

org.macrocloud.kernel.toolkit.response.ErrorResponseData Maven / Gradle / Ivy

There is a newer version: 1.1.0-RELEASE
Show newest version
package org.macrocloud.kernel.toolkit.response;

public class ErrorResponseData extends ResponseData {
	private String exceptionClazz;

	public ErrorResponseData(String message) {
		super(ResponseData.DEFAULT_ERROR_CODE, message, (Object) null, false);
	}

	public ErrorResponseData(Integer code, String message) {
		super(code, message, (Object) null, false);
	}

	public ErrorResponseData(Integer code, String message, Object object) {
		super(code, message, object, false);
	}

	public String getExceptionClazz() {
		return this.exceptionClazz;
	}

	public void setExceptionClazz(final String exceptionClazz) {
		this.exceptionClazz = exceptionClazz;
	}

	public boolean equals(final Object o) {
		if (o == this) {
			return true;
		} else if (!(o instanceof ErrorResponseData)) {
			return false;
		} else {
			ErrorResponseData other = (ErrorResponseData) o;
			if (!other.canEqual(this)) {
				return false;
			} else {
				Object this$exceptionClazz = this.getExceptionClazz();
				Object other$exceptionClazz = other.getExceptionClazz();
				if (this$exceptionClazz == null) {
					if (other$exceptionClazz != null) {
						return false;
					}
				} else if (!this$exceptionClazz.equals(other$exceptionClazz)) {
					return false;
				}

				return true;
			}
		}
	}

	protected boolean canEqual(final Object other) {
		return other instanceof ErrorResponseData;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy