Don't throw generic Exception from diff preferences REST endpoints
Change-Id: I3971f80bcf05e6477117cfe086bedbd3f0f8706e Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
		@@ -46,7 +46,8 @@ public class GetDiffPreferences implements RestReadView<ConfigResource> {
 | 
			
		||||
 | 
			
		||||
  @Override
 | 
			
		||||
  public DiffPreferencesInfo apply(ConfigResource configResource)
 | 
			
		||||
      throws BadRequestException, ResourceConflictException, Exception {
 | 
			
		||||
      throws BadRequestException, ResourceConflictException, IOException,
 | 
			
		||||
      ConfigInvalidException {
 | 
			
		||||
    return readFromGit(gitManager, allUsersName, null);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -61,7 +61,7 @@ public class SetDiffPreferences implements
 | 
			
		||||
 | 
			
		||||
  @Override
 | 
			
		||||
  public Object apply(ConfigResource configResource, DiffPreferencesInfo in)
 | 
			
		||||
      throws BadRequestException, Exception {
 | 
			
		||||
      throws BadRequestException, IOException, ConfigInvalidException {
 | 
			
		||||
    if (in == null) {
 | 
			
		||||
      throw new BadRequestException("input must be provided");
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user