com.teamdev.jxbrowser.script
Class ScriptErrorEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.teamdev.jxbrowser.script.ScriptErrorEvent
All Implemented Interfaces:
java.io.Serializable

public final class ScriptErrorEvent
extends java.util.EventObject

Contains information about JavaScript error.

See Also:
Serialized Form

Constructor Summary
ScriptErrorEvent(ScriptErrorWatcher source, java.lang.String sourceFile, int lineNumber, java.lang.String message, ScriptErrorType type)
          Construct a new ScriptErrorEvent instance according to the passed parameters.
 
Method Summary
 int getLineNumber()
          Returns the line number where error occured.
 java.lang.String getMessage()
          Returns the error message.
 java.lang.String getSourceFile()
          Returns the source file name where error occurred.
 ScriptErrorType getType()
          Returns the script error type.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptErrorEvent

public ScriptErrorEvent(ScriptErrorWatcher source,
                        java.lang.String sourceFile,
                        int lineNumber,
                        java.lang.String message,
                        ScriptErrorType type)
Construct a new ScriptErrorEvent instance according to the passed parameters.

Parameters:
source - the object on which the event initially occurred.
sourceFile - the file name that contains script.
lineNumber - the line number where error occured.
message - the string that represents error message.
type - the script error type.
Method Detail

getSourceFile

public java.lang.String getSourceFile()
Returns the source file name where error occurred.

Returns:
the string that represents the source file name.

getLineNumber

public int getLineNumber()
Returns the line number where error occured.

Returns:
the line number.

getMessage

public java.lang.String getMessage()
Returns the error message.

Returns:
the string that represents error message.

getType

public ScriptErrorType getType()
Returns the script error type.

Returns:
the script error type.
See Also:
ScriptErrorType