package com.ss.android.ugc.aweme.draft.model;

import X.2HN;
import X.M12;
import com.bytedance.covode.number.Covode;
import java.util.Objects;

public final class DraftFileDeleteException {
    public final int errorCode;
    public final Throwable throwable;

    static {
        Covode.recordClassIndex(66517);
    }

    public DraftFileDeleteException() {
        this(0, (Throwable) null, 3, (2HN) null);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_draft_model_DraftFileDeleteException_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    public static /* synthetic */ DraftFileDeleteException copy$default(DraftFileDeleteException draftFileDeleteException, int i, Throwable th, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            i = draftFileDeleteException.errorCode;
        }
        if ((i2 & 2) != 0) {
            th = draftFileDeleteException.throwable;
        }
        return draftFileDeleteException.copy(i, th);
    }

    private Object[] getObjects() {
        return new Object[]{Integer.valueOf(this.errorCode), this.throwable};
    }

    public final DraftFileDeleteException copy(int i, Throwable th) {
        return new DraftFileDeleteException(i, th);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof DraftFileDeleteException)) {
            return false;
        }
        return M12.LIZ(((DraftFileDeleteException) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("DraftFileDeleteException:%s,%s", getObjects());
    }

    public final int getErrorCode() {
        return this.errorCode;
    }

    public final Throwable getThrowable() {
        return this.throwable;
    }

    public final boolean isSuc() {
        if (this.errorCode == 0) {
            return true;
        }
        return false;
    }

    public DraftFileDeleteException(int i, Throwable th) {
        this.errorCode = i;
        this.throwable = th;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DraftFileDeleteException(int i, Throwable th, int i2, 2HN r5) {
        this((i2 & 1) != 0 ? 0 : i, (i2 & 2) != 0 ? null : th);
    }
}
