diff options
author | Grzegorz Kossakowski <grek@google.com> | 2009-09-15 16:35:00 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grek@google.com> | 2009-09-15 16:35:00 -0700 |
commit | 0ed234f379e952e5a0cf69967265517d879790a6 (patch) | |
tree | ca4d8f4326c33688a8bcdf161d87ba43d6576b0a | |
parent | 8c9bfc4a89bdf71280d5f18926996c361e44071a (diff) | |
download | gimd-0ed234f379e952e5a0cf69967265517d879790a6.tar.gz |
InvalidJGitBranchNameException inherits from GimdException.
Instead of inheriting from JGitDatabaseException inherit from
GimdExcpetion. JGitDatabaseException can only occur in specific JGitBranch.
Since InvalidJGitBranchNameException signalizes invalid branch more general
exception must be used as parent.
Trying to work-around this requirement by creating artificial JGitBranch
leads to infinite recursion as artificial branch is not a valid one.
Signed-off-by: Grzegorz Kossakowski <grek@google.com>
-rw-r--r-- | src/main/scala/com/google/gimd/jgit/InvalidJGitBranchNameException.scala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/scala/com/google/gimd/jgit/InvalidJGitBranchNameException.scala b/src/main/scala/com/google/gimd/jgit/InvalidJGitBranchNameException.scala index e3c65f7..5d5d88c 100644 --- a/src/main/scala/com/google/gimd/jgit/InvalidJGitBranchNameException.scala +++ b/src/main/scala/com/google/gimd/jgit/InvalidJGitBranchNameException.scala @@ -17,6 +17,4 @@ package com.google.gimd.jgit import org.spearce.jgit.lib.Repository final class InvalidJGitBranchNameException(val repository: Repository, name: String) - extends JGitDatabaseException(JGitBranch(repository, ""), //not sure if creating artificial - //branch istance is a good idea - "'%1s' is invalid branch name".format(name)) + extends GimdException("'%1s' is invalid branch name".format(name), null) |