package w5; import android.text.TextUtils; import t5.g; /* loaded from: classes2.dex */ public abstract class e { public static void a() { if (!r5.a.b()) { throw new IllegalStateException("Method called before OM SDK activation"); } } public static void b(Object obj, String str) { if (obj == null) { throw new IllegalArgumentException(str); } } public static void c(String str, int i10, String str2) { if (str.length() > i10) { throw new IllegalArgumentException(str2); } } public static void d(String str, String str2) { if (TextUtils.isEmpty(str)) { throw new IllegalArgumentException(str2); } } public static void e(g gVar, t5.e eVar, t5.f fVar) { if (gVar == g.NONE) { throw new IllegalArgumentException("Impression owner is none"); } if (eVar == t5.e.DEFINED_BY_JAVASCRIPT && gVar == g.NATIVE) { throw new IllegalArgumentException("ImpressionType/CreativeType can only be defined as DEFINED_BY_JAVASCRIPT if Impression Owner is JavaScript"); } if (fVar == t5.f.DEFINED_BY_JAVASCRIPT && gVar == g.NATIVE) { throw new IllegalArgumentException("ImpressionType/CreativeType can only be defined as DEFINED_BY_JAVASCRIPT if Impression Owner is JavaScript"); } } }