41 lines
1.4 KiB
Java
41 lines
1.4 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.EmailMeVerificationCodeUseCase;
|
|
import o.AbstractC13163fSk;
|
|
import o.GDQ;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC14210fos;
|
|
import o.fSS;
|
|
import o.wRi;
|
|
import o.yRw;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class EmailMeVerificationCodeUseCase extends wRi {
|
|
private final InterfaceC14210fos a;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public static class EmailVerificationCodeNotSendException extends ScbException {
|
|
}
|
|
|
|
@InterfaceC13391fZD
|
|
public EmailMeVerificationCodeUseCase(yRw yrw, yRw yrw2, InterfaceC14210fos interfaceC14210fos) {
|
|
super(yrw, yrw2);
|
|
this.a = interfaceC14210fos;
|
|
}
|
|
|
|
public final AbstractC13163fSk<GDQ> b() {
|
|
return e(this.a.c().onErrorResumeNext(new fSS() { // from class: o.faO
|
|
@Override // o.fSS
|
|
public final Object a(Object obj) {
|
|
Throwable th = (Throwable) obj;
|
|
if ((th instanceof RetrofitException) && "3000".equals(((RetrofitException) th).e.c.e)) {
|
|
return AbstractC13163fSk.error(new EmailMeVerificationCodeUseCase.EmailVerificationCodeNotSendException());
|
|
}
|
|
return AbstractC13163fSk.error(th);
|
|
}
|
|
}));
|
|
}
|
|
}
|