This way the path can be supplied as a string, without first converting to a java.io.File. Change-Id: I54d9bb9867556cd98b378c0762054b31497459cbtags/v1.1.0.201109011030-rc2
* path of the invalid pack file. | * path of the invalid pack file. | ||||
*/ | */ | ||||
public PackInvalidException(final File path) { | public PackInvalidException(final File path) { | ||||
super(MessageFormat.format(JGitText.get().packFileInvalid, path.getAbsolutePath())); | |||||
this(path.getAbsolutePath()); | |||||
} | |||||
/** | |||||
* Construct a pack invalid error. | |||||
* | |||||
* @param path | |||||
* path of the invalid pack file. | |||||
*/ | |||||
public PackInvalidException(final String path) { | |||||
super(MessageFormat.format(JGitText.get().packFileInvalid, path)); | |||||
} | } | ||||
} | } |