1 package net.sf.statsvn.util;
2
3 /**
4 * Indicates that an invalid version of the <tt>svn</tt> executable was found.
5 * This exception can be thrown by explicit checking of the <tt>svn</tt> binary's version, or
6 * by checking for (and failing to find) a repository root in <tt>svn info</tt>'s output (a 1.3 feature).
7 *
8 * @see net.sf.statsvn.util.SvnStartupUtils
9 *
10 * @author Jean-Philippe Daigle <jpdaigle@softwareengineering.ca>
11 *
12 * @version $Id: SvnVersionMismatchException.java 351 2008-03-28 18:46:26Z benoitx $
13 */
14 public class SvnVersionMismatchException extends Exception {
15 private static final long serialVersionUID = 1L;
16
17 public SvnVersionMismatchException() {
18 super("Subversion binary is incorrect version or not found. Please verify that "
19 + "you have installed the Subversion command-line client and it is on your path.");
20 }
21
22 public SvnVersionMismatchException(final String m) {
23 super(m);
24 }
25
26 public SvnVersionMismatchException(final String found, final String required) {
27 super("Subversion binary is incorrect version. Found: " + found + ", required: " + required);
28 }
29 }