*ServiceStartNotAllowedException shouldn't have a "cause"
Bug: 210890426
Test: Manual test with a test app, received this exception and
made sure cause isn't set.
Change-Id: I94ba39c775cf95074907db6814104289a577d496
Merged-in: I94ba39c775cf95074907db6814104289a577d496
(cherry picked from commit d4396b9a9d)
Merged-In:I94ba39c775cf95074907db6814104289a577d496
This commit is contained in:
committed by
Android Build Coastguard Worker
parent
17df79ccc0
commit
34af3074f2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user