41 lines
1.3 KiB
Java
41 lines
1.3 KiB
Java
|
package com.scb.phone.domain.interactor.emailverification;
|
||
|
|
||
|
import com.scb.phone.domain.ScbException;
|
||
|
import com.scb.phone.domain.errors.RetrofitException;
|
||
|
import com.scb.phone.domain.interactor.emailverification.EnterVerificationCodeUseCase;
|
||
|
import o.AbstractC13163fSk;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.Xky;
|
||
|
import o.fSS;
|
||
|
import o.rKG;
|
||
|
import o.wRi;
|
||
|
import o.yRw;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class EnterVerificationCodeUseCase extends wRi {
|
||
|
private final Xky d;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public static class EmailMeVerificationCodeNeededException extends ScbException {
|
||
|
}
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public EnterVerificationCodeUseCase(yRw yrw, yRw yrw2, Xky xky) {
|
||
|
super(yrw, yrw2);
|
||
|
this.d = xky;
|
||
|
}
|
||
|
|
||
|
public final AbstractC13163fSk<rKG> d() {
|
||
|
return e(this.d.P().onErrorResumeNext(new fSS() { // from class: o.Fth
|
||
|
@Override // o.fSS
|
||
|
public final Object a(Object obj) {
|
||
|
Throwable th = (Throwable) obj;
|
||
|
if ((th instanceof RetrofitException) && "3001".equals(((RetrofitException) th).e.c.e)) {
|
||
|
return AbstractC13163fSk.error(new EnterVerificationCodeUseCase.EmailMeVerificationCodeNeededException());
|
||
|
}
|
||
|
return AbstractC13163fSk.error(th);
|
||
|
}
|
||
|
}));
|
||
|
}
|
||
|
}
|