Package com.teamdev.jxbrowser.js
Interface ConsoleMessage
public interface ConsoleMessage
A JavaScript console message.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConsoleMessageLevel
level()
Returns the console message level.default int
Returns the line number of the console message.default String
message()
Returns a string that represents the text of the console message.default String
source()
Returns a string that represents the source of the console message.
-
Method Details
-
level
Returns the console message level. -
message
Returns a string that represents the text of the console message.When logging the JavaScript error that was caused by calling the Java method that was injected using the
InjectJsCallback
, then the message will contain the java exception type and the first line of the stack trace that contains information about the package, class, method and the line of code where the exception was thrown. -
lineNumber
default int lineNumber()Returns the line number of the console message. -
source
Returns a string that represents the source of the console message.
-