JFlex
Class ScannerException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byJFlex.ScannerException
All Implemented Interfaces:
ErrorMessages, java.io.Serializable

public class ScannerException
extends java.lang.RuntimeException
implements ErrorMessages

This Exception could be thrown while scanning the specification (e.g. unmatched input)

See Also:
Serialized Form

Field Summary
 int column
           
 java.io.File file
           
 int line
           
 int message
           
 
Fields inherited from interface JFlex.ErrorMessages
CHARCLASS_MACRO, CHARSET_2_SMALL, CS2SMALL_CHAR, CS2SMALL_STRING, CUPSYM_AFTER_CUP, EOF_IN_ACTION, EOF_IN_COMMENT, EOF_IN_MACROS, EOF_IN_REGEXP, EOF_IN_STATES, EOF_IN_STRING, EOF_SINGLERULE, EOF_WO_ACTION, EOL_IN_CHARCLASS, FILE_CYCLE, FILE_WRITE, LEXSTATE_UNDECL, LOOKAHEAD_ERROR, MACRO_UNDECL, messages, NEVER_MATCH, NO_BUFFER_SIZE, NO_DIRECTORY, NO_LAST_ACTION, NO_LEX_SPEC, NO_MATCHING_BR, NO_SKEL_FILE, NOT_AT_BOL, NOT_READABLE, OUT_OF_MEMORY, QUIL_CUPSYM, QUIL_EOFTHROW, QUIL_INITTHROW, QUIL_SCANERROR, QUIL_THROW, QUIL_YYLEXTHROW, REGEXP_EXPECTED, REPEAT_GREATER, REPEAT_ZERO, STATE_IDENT_EXP, SYNTAX_ERROR, UNEXPECTED_CHAR, UNEXPECTED_EOF, UNEXPECTED_NL, UNKNOWN_OPTION, UNKNOWN_SYNTAX, UNTERMINATED_STR, WRONG_SKELETON, ZERO_STATES
 
Constructor Summary
ScannerException(java.io.File file, int message)
          Creates a new ScannerException for a file with a message only.
ScannerException(java.io.File file, int message, int line)
          Creates a new ScannerException for a file with a message and line number.
ScannerException(java.io.File file, int message, int line, int column)
          Creates a new ScannerException with a message, line number and column.
ScannerException(int message)
          Creates a new ScannerException with a message only.
ScannerException(int message, int line)
          Creates a new ScannerException with a message and line number.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

line

public int line

column

public int column

message

public int message

file

public java.io.File file
Constructor Detail

ScannerException

public ScannerException(int message)
Creates a new ScannerException with a message only.

Parameters:
message - the code for the error description presented to the user.

ScannerException

public ScannerException(java.io.File file,
                        int message)
Creates a new ScannerException for a file with a message only.

Parameters:
file - the file in which the error occured
message - the code for the error description presented to the user.

ScannerException

public ScannerException(int message,
                        int line)
Creates a new ScannerException with a message and line number.

Parameters:
message - the code for the error description presented to the user.
line - the number of the line in the specification that contains the error

ScannerException

public ScannerException(java.io.File file,
                        int message,
                        int line)
Creates a new ScannerException for a file with a message and line number.

Parameters:
message - the code for the error description presented to the user.
line - the number of the line in the specification that contains the error

ScannerException

public ScannerException(java.io.File file,
                        int message,
                        int line,
                        int column)
Creates a new ScannerException with a message, line number and column.

Parameters:
message - the code for the error description presented to the user.
line - the number of the line in the specification that contains the error
column - the column where the error starts