16 lines
493 B
Java
16 lines
493 B
Java
|
package com.google.android.gms.common.internal;
|
||
|
|
||
|
import com.google.android.gms.common.api.ApiException;
|
||
|
import com.google.android.gms.common.api.ResolvableApiException;
|
||
|
import com.google.android.gms.common.api.Status;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class ApiExceptionUtil {
|
||
|
public static ApiException fromStatus(Status status) {
|
||
|
if (status.hasResolution()) {
|
||
|
return new ResolvableApiException(status);
|
||
|
}
|
||
|
return new ApiException(status);
|
||
|
}
|
||
|
}
|