Merge "*ServiceStartNotAllowedException shouldn't have a "cause"" into sc-v2-dev
This commit is contained in:
@@ -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