Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.0
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.syntax
Class SyntaxException

    java.lang.Object
      java.lang.Throwable
          java.lang.Exception
              org.codehaus.groovy.GroovyException
                  org.codehaus.groovy.syntax.SyntaxException

    class SyntaxException
    extends GroovyException

Base exception indicating a syntax error.

author:
  bob mcwhirter

version:
  $Id: SyntaxException.java 14281 2008-12-05 12:23:54Z glaforge $

Constructor Summary
`SyntaxException(String message, int line, int column)`
`SyntaxException(String message, Throwable cause, int line, int column)`

Method Summary
`int` | `getEndColumn()`
`int` | `getLine()` Retrieve the line upon which the error occurred.
`String` | `getMessage()`
`String` | `getOriginalMessage()`
`String` | `getSourceLocator()`
`int` | `getStartColumn()` Retrieve the column upon which the error occurred.
`int` | `getStartLine()`
`void` | `setSourceLocator(String sourceLocator)`

Methods inherited from class GroovyException
isFatal, setFatal

Methods inherited from class Exception
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, wait, wait, wait, hashCode, getClass, equals, notify, notifyAll

Methods inherited from class Throwable
printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, wait, wait, wait, hashCode, getClass, equals, notify, notifyAll

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### SyntaxException

    public SyntaxException(String message, int line, int column)

### SyntaxException

    public SyntaxException(String message, Throwable cause, int line, int column)

Method Detail

### getEndColumn

    public int getEndColumn()

  return:
    the end column on which the error occurs

### getLine

    public int getLine()

  Retrieve the line upon which the error occurred.
  return:
    The line.

### getMessage

    public String getMessage()

### getOriginalMessage

    public String getOriginalMessage()

### getSourceLocator

    public String getSourceLocator()

### getStartColumn

    public int getStartColumn()

  Retrieve the column upon which the error occurred.
  return:
    The column.

### getStartLine

    public int getStartLine()

  return:
    the end of the line on which the error occurs

### setSourceLocator

    public void setSourceLocator(String sourceLocator)

Copyright © 2003-2009 The Codehaus. All rights reserved.