csheets.core.formula.lang
Class UnknownElementException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by csheets.core.formula.compiler.FormulaCompilationException
              extended by csheets.core.formula.lang.UnknownElementException
All Implemented Interfaces:
Serializable

public class UnknownElementException
extends FormulaCompilationException

An exception that is thrown if an unknown language element is requested.

Author:
Einar Pehrson
See Also:
Serialized Form

Constructor Summary
UnknownElementException(String identifier)
          Creates a new unknown identifier exception.
 
Method Summary
 String getIdentifier()
          Returns the identifier of the unknown element.
 String getMessage()
          Returns a message describing the exception.
 String toString()
          Returns a string representation of the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownElementException

public UnknownElementException(String identifier)
Creates a new unknown identifier exception.

Parameters:
identifier - the identifier of the unknown element
Method Detail

getIdentifier

public String getIdentifier()
Returns the identifier of the unknown element.

Returns:
the identifier of the unknown element

getMessage

public String getMessage()
Returns a message describing the exception.

Overrides:
getMessage in class Throwable
Returns:
a message describing the exception

toString

public String toString()
Returns a string representation of the exception.

Overrides:
toString in class FormulaCompilationException
Returns:
a string representation of the exception