Return BAD_REQUEST when the REST API throws IllegalArgumentException

In Gerrit v3.7, JGit may throw an IllegalArgumentException when
the input repository name is invalid. Catch the exception and
consider the request as not valid, returning a 400 status code.

Change-Id: I39600be3f62541ded1c674feb807b89a96d71c71
1 file changed
tree: b6dc27e231f0ebb72e3a75f980190c2a35c43834
  1. example-setup/
  2. src/
  3. .gitignore
  4. BUILD
  5. Jenkinsfile
  6. LICENSE