Class SimpleErrorReporter

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(java.lang.String message, java.lang.String sourceName, int line, int lineOffset)
      Report an error.
      static java.lang.String getMessage0​(java.lang.String messageId)  
      static java.lang.String getMessage1​(java.lang.String messageId, java.lang.Object arg1)  
      void warning​(java.lang.String message, java.lang.String sourceName, int line, int lineOffset)
      Report a warning.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleErrorReporter

        public SimpleErrorReporter()
    • Method Detail

      • warning

        public void warning​(java.lang.String message,
                            java.lang.String sourceName,
                            int line,
                            int lineOffset)
        Description copied from interface: ErrorReporter
        Report a warning. The implementing class may choose to ignore the warning if it desires.
        Specified by:
        warning in interface ErrorReporter
        Parameters:
        message - a String describing the warning
        sourceName - a String describing the JavaScript source where the warning occurred; typically a filename or URL
        line - the line number associated with the warning
        lineOffset - the offset into lineSource where problem was detected
      • error

        public void error​(java.lang.String message,
                          java.lang.String sourceName,
                          int line,
                          int lineOffset)
        Description copied from interface: ErrorReporter
        Report an error. The implementing class is free to throw an exception if it desires. If execution has not yet begun, the JavaScript engine is free to find additional errors rather than terminating the translation. It will not execute a script that had errors, however.
        Specified by:
        error in interface ErrorReporter
        Parameters:
        message - a String describing the error
        sourceName - a String describing the JavaScript source where the error occurred; typically a filename or URL
        line - the line number associated with the error
        lineOffset - the offset into lineSource where problem was detected
      • getMessage0

        public static java.lang.String getMessage0​(java.lang.String messageId)
      • getMessage1

        public static java.lang.String getMessage1​(java.lang.String messageId,
                                                   java.lang.Object arg1)