Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bc95f3388207d162ed2934da6289681114440cdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*******************************************************************************
 * Copyright (c) 2005, 2008 IBM Corporation and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.internal.text.revisions;

/**
 * Thrown to indicate that an attempt to create or modify a {@link Range} failed because it would
 * have resulted in an illegal range. A range is illegal if its length is <= 0 or if its start
 * line is < 0.
 *
 * @since 3.2
 */
public final class LineIndexOutOfBoundsException extends IndexOutOfBoundsException {
	private static final long serialVersionUID= 1L;

	/**
	 * Constructs an <code>LineIndexOutOfBoundsException</code> with no detail message.
	 */
	public LineIndexOutOfBoundsException() {
		super();
	}

    /**
	 * Constructs an <code>LineIndexOutOfBoundsException</code> with the specified detail message.
	 *
	 * @param s the detail message.
	 */
	public LineIndexOutOfBoundsException(String s) {
		super(s);
	}

	/**
	 * Constructs a new <code>LineIndexOutOfBoundsException</code>
	 * object with an argument indicating the illegal index.
	 *
	 * @param index the illegal index.
	 */
	public LineIndexOutOfBoundsException(int index) {
		super("Line index out of range: " + index); //$NON-NLS-1$
	}
}

Back to the top