Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de8864a1 authored by Makoto Onuki's avatar Makoto Onuki Committed by Presubmit Automerger Backend
Browse files

[automerge] *ServiceStartNotAllowedException shouldn't have a "cause" 2p: d4396b9a

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16682150

Bug: 210890426
Change-Id: I6d86fd848e337e17536284dee95f628094073c89
parents 80c5689f d4396b9a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -40,4 +40,11 @@ public abstract class ServiceStartNotAllowedException extends IllegalStateExcept
            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;
    }
}