org.quattor.pan.exceptions
Class SyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.quattor.pan.exceptions.SyntaxException
All Implemented Interfaces:
java.io.Serializable

public class SyntaxException
extends java.lang.Exception

Exceptions of this type are thrown lexing and parsing phases. A few of these exceptions are thrown by the Template constructor, which makes the more complex syntax checks.

Author:
loomis
See Also:
Serialized Form

Constructor Summary
SyntaxException(java.lang.String message, SourceRange sourceRange)
           
SyntaxException(java.lang.String message, SourceRange sourceRange, java.io.File file)
           
 
Method Summary
 SyntaxException addExceptionInfo(SourceRange sourceRange, java.io.File file)
           
static SyntaxException create(SourceRange sourceRange, EvaluationException ee)
           
static SyntaxException create(SourceRange sourceRange, java.io.File file, java.lang.String msgkey, java.lang.Object... args)
           
static SyntaxException create(SourceRange sourceRange, java.lang.String msgkey, java.lang.Object... args)
           
 java.lang.String getMessage()
           
 java.lang.String getSimpleMessage()
           
 
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
 

Constructor Detail

SyntaxException

public SyntaxException(java.lang.String message,
                       SourceRange sourceRange)

SyntaxException

public SyntaxException(java.lang.String message,
                       SourceRange sourceRange,
                       java.io.File file)
Method Detail

create

public static SyntaxException create(SourceRange sourceRange,
                                     java.lang.String msgkey,
                                     java.lang.Object... args)

create

public static SyntaxException create(SourceRange sourceRange,
                                     java.io.File file,
                                     java.lang.String msgkey,
                                     java.lang.Object... args)

create

public static SyntaxException create(SourceRange sourceRange,
                                     EvaluationException ee)

addExceptionInfo

public SyntaxException addExceptionInfo(SourceRange sourceRange,
                                        java.io.File file)

getSimpleMessage

public java.lang.String getSimpleMessage()

getMessage

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


Copyright © 2011 Quattor. All Rights Reserved.