1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- package com.zhouhong.iotdbdemo.response;
- /**
- * description: 错误返回封装
- * date: 2022/8/15 21:30
- * author: zhouhong
- */
- public class ErrorResponseData extends ResponseData {
- private String exceptionClazz;
- ErrorResponseData(String message) {
- super(false, DEFAULT_ERROR_CODE, message, message, (Object)null);
- }
- public ErrorResponseData(Integer code, String message) {
- super(false, code, message, message, (Object)null);
- }
- ErrorResponseData(Integer code, String message, Object object) {
- super(false, code, message, object);
- }
- ErrorResponseData(Integer code, String message, String localizedMsg, Object object) {
- super(false, code, message, localizedMsg, object);
- }
- 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 if (!super.equals(o)) {
- 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;
- }
- public int hashCode() {
- int result = super.hashCode();
- Object $exceptionClazz = this.getExceptionClazz();
- result = result * 59 + ($exceptionClazz == null ? 43 : $exceptionClazz.hashCode());
- return result;
- }
- public String getExceptionClazz() {
- return this.exceptionClazz;
- }
- public void setExceptionClazz(final String exceptionClazz) {
- this.exceptionClazz = exceptionClazz;
- }
- public String toString() {
- return "ErrorResponseData(exceptionClazz=" + this.getExceptionClazz() + ")";
- }
- }
|