org.duelengine.duel.codegen
Class ScriptTranslationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.duelengine.duel.parsing.SyntaxException
                      extended by org.duelengine.duel.codegen.ScriptTranslationException
All Implemented Interfaces:
Serializable

public class ScriptTranslationException
extends SyntaxException

See Also:
Serialized Form

Constructor Summary
ScriptTranslationException(String message, org.mozilla.javascript.ast.AstNode node)
           
ScriptTranslationException(String message, org.mozilla.javascript.ast.AstNode node, Throwable cause)
           
ScriptTranslationException(String message, org.mozilla.javascript.EvaluatorException error)
           
 
Method Summary
 SyntaxException adjustErrorStatistics(CodeBlockNode node)
          Attempts to adjust the position statistics to match the original source
 org.mozilla.javascript.ast.AstNode getNode()
           
 
Methods inherited from class org.duelengine.duel.parsing.SyntaxException
getColumn, getIndex, getLine
 
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
 

Constructor Detail

ScriptTranslationException

public ScriptTranslationException(String message,
                                  org.mozilla.javascript.ast.AstNode node)

ScriptTranslationException

public ScriptTranslationException(String message,
                                  org.mozilla.javascript.ast.AstNode node,
                                  Throwable cause)

ScriptTranslationException

public ScriptTranslationException(String message,
                                  org.mozilla.javascript.EvaluatorException error)
Method Detail

getNode

public org.mozilla.javascript.ast.AstNode getNode()

adjustErrorStatistics

public SyntaxException adjustErrorStatistics(CodeBlockNode node)
Attempts to adjust the position statistics to match the original source

Parameters:
ex -
Returns:


Copyright © 2012. All Rights Reserved.