org.codehaus.groovy.syntax.lexer
Class UnexpectedCharacterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.codehaus.groovy.GroovyException
              extended byorg.codehaus.groovy.syntax.SyntaxException
                  extended byorg.codehaus.groovy.syntax.lexer.LexerException
                      extended byorg.codehaus.groovy.syntax.lexer.UnexpectedCharacterException
All Implemented Interfaces:
GroovyExceptionInterface, java.io.Serializable

public class UnexpectedCharacterException
extends LexerException

See Also:
Serialized Form

Field Summary
private  char c
           
private  char[] expected
           
private  java.lang.String message
           
 
Fields inherited from class org.codehaus.groovy.syntax.SyntaxException
 
Fields inherited from class org.codehaus.groovy.GroovyException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
UnexpectedCharacterException(int line, int column, char c, char[] expected)
           
UnexpectedCharacterException(int line, int column, char c, java.lang.String message)
           
 
Method Summary
 char getCharacter()
           
 char[] getExpected()
           
 java.lang.String getMessage()
           
 
Methods inherited from class org.codehaus.groovy.syntax.SyntaxException
getEndColumn, getLine, getSourceLocator, getStartColumn, getStartLine, setSourceLocator
 
Methods inherited from class org.codehaus.groovy.GroovyException
isFatal, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

c

private char c

expected

private char[] expected

message

private java.lang.String message
Constructor Detail

UnexpectedCharacterException

public UnexpectedCharacterException(int line,
                                    int column,
                                    char c,
                                    java.lang.String message)

UnexpectedCharacterException

public UnexpectedCharacterException(int line,
                                    int column,
                                    char c,
                                    char[] expected)
Method Detail

getCharacter

public char getCharacter()

getExpected

public char[] getExpected()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class SyntaxException


Copyright © 2003-2005 The Codehaus. All Rights Reserved.