net.sf.jameleon.exception
Class JameleonScriptException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.jameleon.exception.JameleonScriptException
All Implemented Interfaces:
Serializable, LocationAware

public class JameleonScriptException
extends RuntimeException
implements LocationAware

A RuntimeException that is noted as the script failing. The reason behind a RuntimeException is so that the test can continue of it is supposed to continue

See Also:
Serialized Form

Field Summary
protected  int columnNumber
           
protected  String elementTagName
           
protected  int lineNumber
           
protected  String scriptFileName
           
 
Constructor Summary
JameleonScriptException()
           
JameleonScriptException(String errorMsg)
           
JameleonScriptException(String errorMsg, LocationAware la)
           
JameleonScriptException(String errorMsg, Throwable cause)
           
JameleonScriptException(String errorMsg, Throwable cause, LocationAware la)
           
JameleonScriptException(Throwable cause)
           
JameleonScriptException(Throwable cause, LocationAware la)
           
 
Method Summary
protected  void copyLocationAwareProperties(LocationAware la)
           
 int getColumnNumber()
           
 String getElementName()
           
 String getFileName()
           
 int getLineNumber()
           
 void setColumnNumber(int columnNumber)
          Sets the column number of the tag
 void setElementName(String elementName)
          Sets the element name which caused the problem
 void setFileName(String fileName)
          Sets the Jelly file which caused the problem
 void setLineNumber(int lineNumber)
          Sets the line number of the tag
 
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

lineNumber

protected int lineNumber

columnNumber

protected int columnNumber

scriptFileName

protected String scriptFileName

elementTagName

protected String elementTagName
Constructor Detail

JameleonScriptException

public JameleonScriptException()

JameleonScriptException

public JameleonScriptException(String errorMsg)

JameleonScriptException

public JameleonScriptException(Throwable cause)

JameleonScriptException

public JameleonScriptException(Throwable cause,
                               LocationAware la)

JameleonScriptException

public JameleonScriptException(String errorMsg,
                               Throwable cause)

JameleonScriptException

public JameleonScriptException(String errorMsg,
                               LocationAware la)

JameleonScriptException

public JameleonScriptException(String errorMsg,
                               Throwable cause,
                               LocationAware la)
Method Detail

copyLocationAwareProperties

protected void copyLocationAwareProperties(LocationAware la)

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface LocationAware
Returns:
the line number of the tag

setLineNumber

public void setLineNumber(int lineNumber)
Sets the line number of the tag

Specified by:
setLineNumber in interface LocationAware

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface LocationAware
Returns:
the column number of the tag

setColumnNumber

public void setColumnNumber(int columnNumber)
Sets the column number of the tag

Specified by:
setColumnNumber in interface LocationAware

getFileName

public String getFileName()
Specified by:
getFileName in interface LocationAware
Returns:
the Jelly file which caused the problem

setFileName

public void setFileName(String fileName)
Sets the Jelly file which caused the problem

Specified by:
setFileName in interface LocationAware

getElementName

public String getElementName()
Specified by:
getElementName in interface LocationAware
Returns:
the element name which caused the problem

setElementName

public void setElementName(String elementName)
Sets the element name which caused the problem

Specified by:
setElementName in interface LocationAware


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.