129
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2005, 2006 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module dwtx.jface.internal.text.revisions.LineIndexOutOfBoundsException;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17 /**
|
|
18 * Thrown to indicate that an attempt to create or modify a {@link Range} failed because it would
|
|
19 * have resulted in an illegal range. A range is illegal if its length is <= 0 or if its start
|
|
20 * line is < 0.
|
|
21 *
|
|
22 * @since 3.2
|
|
23 */
|
|
24 public final class LineIndexOutOfBoundsException : IndexOutOfBoundsException {
|
|
25 private static final long serialVersionUID= 1L;
|
|
26
|
|
27 /**
|
|
28 * Constructs an <code>LineIndexOutOfBoundsException</code> with no detail message.
|
|
29 */
|
|
30 public LineIndexOutOfBoundsException() {
|
|
31 super();
|
|
32 }
|
|
33
|
|
34 /**
|
|
35 * Constructs an <code>LineIndexOutOfBoundsException</code> with the specified detail message.
|
|
36 *
|
|
37 * @param s the detail message.
|
|
38 */
|
|
39 public LineIndexOutOfBoundsException(String s) {
|
|
40 super(s);
|
|
41 }
|
|
42
|
|
43 /**
|
|
44 * Constructs a new <code>LineIndexOutOfBoundsException</code>
|
|
45 * object with an argument indicating the illegal index.
|
|
46 *
|
|
47 * @param index the illegal index.
|
|
48 */
|
|
49 public LineIndexOutOfBoundsException(int index) {
|
|
50 super("Line index out of range: " + index); //$NON-NLS-1$
|
|
51 }
|
|
52 }
|