01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.codeassist.complete;
11:
12: /**
13: * Thrown whenever cursor location is not inside a consistent token
14: * for example: inside a string, number, unicode, comments etc...
15: */
16: public class InvalidCursorLocation extends RuntimeException {
17:
18: public String irritant;
19:
20: /* Possible irritants */
21: public static final String NO_COMPLETION_INSIDE_UNICODE = "No Completion Inside Unicode"; //$NON-NLS-1$
22: public static final String NO_COMPLETION_INSIDE_COMMENT = "No Completion Inside Comment"; //$NON-NLS-1$
23: public static final String NO_COMPLETION_INSIDE_STRING = "No Completion Inside String"; //$NON-NLS-1$
24: public static final String NO_COMPLETION_INSIDE_NUMBER = "No Completion Inside Number"; //$NON-NLS-1$
25:
26: private static final long serialVersionUID = -3443160725735779590L; // backward compatible
27:
28: public InvalidCursorLocation(String irritant) {
29: this.irritant = irritant;
30: }
31: }
|