org.extex.ocpware.compiler.exception
Class UnexpectedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.extex.ocpware.exception.OcpException
                  extended by org.extex.ocpware.compiler.exception.SyntaxException
                      extended by org.extex.ocpware.compiler.exception.UnexpectedException
All Implemented Interfaces:
java.io.Serializable

public class UnexpectedException
extends SyntaxException

This exception class signals the occurrence of a syntax error.

Version:
$Revision: 6017 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Constructor Summary
UnexpectedException(java.lang.String unexpected, java.lang.CharSequence line, int lineno)
          Creates a new object.
 
Method Summary
 java.lang.String getLocalizedMessage()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Constructor Detail

UnexpectedException

public UnexpectedException(java.lang.String unexpected,
                           java.lang.CharSequence line,
                           int lineno)
Creates a new object.

Parameters:
unexpected - the unexpected id
line - the current line up to the last character read
lineno - the number of the current line
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()

Overrides:
getLocalizedMessage in class SyntaxException
See Also:
Throwable.getLocalizedMessage()