01: package com.espada.bugtracker.app;
02:
03: /**
04: * Title: BugTracker
05: * Description: Exception while creating project
06: * Copyright: Copyright (c) 2001
07: * Company:
08: * @author Max Belugin <belugin@mail.ru>
09: * @version 1.0
10: */
11:
12: public class CannotCreateProjectException extends RuntimeException {
13: CannotCreateProjectException(String projectName) {
14: this (projectName, null);
15: };
16:
17: CannotCreateProjectException(String projectName, Exception cause) {
18: super (message(projectName, cause));
19: };
20:
21: private static String message(String projectName, Exception cause) {
22: String s = "Cannot create project '" + projectName + "'";
23: if (cause != null) {
24: s += ". Reason: " + cause;
25: }
26: ;
27: return s;
28: };
29: }
|