Merge changes from topic "presubmit-am-8bb7303602ce4e5599c16939f20f4126" into sc-v2-dev-plus-aosp

* changes:
  [automerge] *ServiceStartNotAllowedException shouldn't have a "cause" 2p: d4396b9a9d
  *ServiceStartNotAllowedException shouldn't have a "cause"
This commit is contained in:
Makoto Onuki
2022-01-21 16:04:24 +00:00
committed by Android (Google) Code Review

View File

@@ -40,4 +40,11 @@ public abstract class ServiceStartNotAllowedException extends IllegalStateExcept
return new BackgroundServiceStartNotAllowedException(message); return new BackgroundServiceStartNotAllowedException(message);
} }
} }
@Override
public synchronized Throwable getCause() {
// "Cause" is often used for clustering exceptions, and developers don't want to have it
// for this exception. b/210890426
return null;
}
} }