com.aspose.html.dom.events

Class ErrorEvent

    • Method Detail

      • initEvent

        @DOMNameAttribute(name="initEvent")
        public void initEvent(String message,
                                                                   String filename,
                                                                   long lineno,
                                                                   long colno,
                                                                   Object error)

        Initializes the event.

        Parameters:
        message - The message.
        filename - The filename.
        lineno - The line number.
        colno - The column number.
        error - The error.
      • getMessage

        @DOMNameAttribute(name="message")
        public String getMessage()

        The message attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the error message.

        Value: The message.
      • getFilename

        @DOMNameAttribute(name="filename")
        public String getFilename()

        The filename attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to the empty string. It represents the absolute URL of the script in which the error originally occurred.

        Value: The filename.
      • getLineNo

        @DOMNameAttribute(name="lineno")
        public long getLineNo()

        The lineno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the line number where the error occurred in the script.

      • getColNo

        @DOMNameAttribute(name="colno")
        public long getColNo()

        The colno attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to zero. It represents the column number where the error occurred in the script.

      • getError

        @DOMNameAttribute(name="error")
        public Object getError()

        The error attribute must return the value it was initialized to. When the object is created, this attribute must be initialized to null. Where appropriate, it is set to the object representing the error (e.g. the exception object in the case of an uncaught DOM exception).

        Value: The error.