mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
34 lines
975 B
Java
34 lines
975 B
Java
package com.google.firebase.messaging;
|
|
|
|
import java.util.Locale;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes8.dex */
|
|
public final class SendException extends Exception {
|
|
public static final int ERROR_INVALID_PARAMETERS = 1;
|
|
public static final int ERROR_SIZE = 2;
|
|
public static final int ERROR_TOO_MANY_MESSAGES = 4;
|
|
public static final int ERROR_TTL_EXCEEDED = 3;
|
|
public static final int ERROR_UNKNOWN = 0;
|
|
private final int errorCode;
|
|
|
|
public SendException(String str) {
|
|
super(str);
|
|
this.errorCode = parseErrorCode(str);
|
|
}
|
|
|
|
private int parseErrorCode(String str) {
|
|
if (str == null) {
|
|
return 0;
|
|
}
|
|
String lowerCase = str.toLowerCase(Locale.US);
|
|
lowerCase.getClass();
|
|
switch (lowerCase) {
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
public int getErrorCode() {
|
|
return this.errorCode;
|
|
}
|
|
}
|