com.teamdev.jxbrowser.console
Class ScriptErrorEvent

java.lang.Object
  extended by com.teamdev.jxbrowser.console.MessageEvent
      extended by com.teamdev.jxbrowser.console.ScriptErrorEvent

public class ScriptErrorEvent
extends MessageEvent

This class contains information about script error.

See Also:
ConsoleListener, ConsoleService

Constructor Summary
ScriptErrorEvent(com.teamdev.jxbrowser.impl.console.ScriptErrorInitData initData)
           
 
Method Summary
 java.lang.String getCategory()
           
 long getColumnNumber()
           
 java.lang.String getErrorMessage()
           
 long getLineNumber()
           
 java.lang.String getSourceLine()
           
 java.lang.String getSourceName()
           
 com.teamdev.jxbrowser.console.ScriptErrorType getType()
           
 
Methods inherited from class com.teamdev.jxbrowser.console.MessageEvent
getMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptErrorEvent

public ScriptErrorEvent(com.teamdev.jxbrowser.impl.console.ScriptErrorInitData initData)
Method Detail

getCategory

public java.lang.String getCategory()
Returns:
category of script error in string type.

getColumnNumber

public long getColumnNumber()
Returns:
column number in html content where error found.

getType

public com.teamdev.jxbrowser.console.ScriptErrorType getType()
Returns:
type of script error in ScriptErrorType.

getLineNumber

public long getLineNumber()
Returns:
line number in html content where error found

getSourceLine

public java.lang.String getSourceLine()
Returns:
line number in script source where error found

getSourceName

public java.lang.String getSourceName()
Returns:
name of script source

getErrorMessage

public java.lang.String getErrorMessage()
Returns:
error message.