// // Source code recreated from a .class file by IntelliJ IDEA // (powered by FernFlower decompiler) // package org.jeecg.modules.doc.exception; import org.jeecg.modules.doc.enums.ResultCodeEnum; public class QiwenException extends RuntimeException { private Integer code; public QiwenException(String message) { super(message); this.code = ResultCodeEnum.UNKNOWN_ERROR.getCode(); } public QiwenException(Integer code, String message) { super(message); this.code = code; } public QiwenException(ResultCodeEnum resultCodeEnum) { super(resultCodeEnum.getMessage()); this.code = resultCodeEnum.getCode(); } public String toString() { return "QiwenException{code=" + this.code + ", message=" + this.getMessage() + '}'; } public Integer getCode() { return this.code; } public void setCode(final Integer code) { this.code = code; } public boolean equals(final Object o) { if (o == this) { return true; } else if (!(o instanceof QiwenException)) { return false; } else { QiwenException other = (QiwenException)o; if (!other.canEqual(this)) { return false; } else { Object this$code = this.getCode(); Object other$code = other.getCode(); if (this$code == null) { if (other$code != null) { return false; } } else if (!this$code.equals(other$code)) { return false; } return true; } } } protected boolean canEqual(final Object other) { return other instanceof QiwenException; } public int hashCode() { boolean PRIME = true; int result = 1; Object $code = this.getCode(); result = result * 59 + ($code == null ? 43 : $code.hashCode()); return result; } }