Create project refactoring

This refactoring is a preparation to feature
'Create project through web interface' which
includes a new UI to create projects.

It splits out the create project code
adding new classes that will be used both
by ssh command and the new UI.

Updated some naming pattern to keep it more
consistent.

Improved the exception handling.

Change-Id: I789c9a09f905d90680cc74d9b6aa7ae8f4d808b7
This commit is contained in:
monica.dionisio
2011-07-12 09:57:07 -03:00
committed by Gustaf Lundh
parent a3f73aab40
commit 860ea72aab
7 changed files with 490 additions and 310 deletions

View File

@@ -0,0 +1,29 @@
// Copyright (C) 2011 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.common.errors;
/** Error indicating failed to create new project. */
public class ProjectCreationFailedException extends Exception {
private static final long serialVersionUID = 1L;
public ProjectCreationFailedException(final String message) {
this(message, null);
}
public ProjectCreationFailedException(final String message,
final Throwable why) {
super(message, why);
}
}