src/aria/templates/ClassWriter.js
function (statement, msgId, msgArgs) {
            if (this._processErrors) {
                this.errors = true;
                this._processErrors.fn.call(this._processErrors.scope, statement, msgId, msgArgs, this.errorContext);
            } else {
                if (!msgArgs) {
                    msgArgs = [];
                }
                if (!this.errors) {
                    this.errors = this.logErrors ? true : [];
                }
                msgArgs.push(statement.lineNumber);
                this.errors.push({
                    msgId : msgId,
                    msgArgs : msgArgs,
                    errorContext : this.errorContext
                });
            }

        }
function (statement, msgId, msgArgs) {
            if (this._processErrors) {
                this.errors = true;
                this._processErrors.fn.call(this._processErrors.scope, statement, msgId, msgArgs, this.errorContext);
            } else {
                if (!msgArgs) {
                    msgArgs = [];
                }
                if (!this.errors) {
                    this.errors = this.logErrors ? true : [];
                }
                msgArgs.push(statement.lineNumber);
                this.errors.push({
                    msgId : msgId,
                    msgArgs : msgArgs,
                    errorContext : this.errorContext
                });
            }

        }
function ( statement , msgId , msgArgs ) { if ( this . _processErrors ) { this . errors = true ; this . _processErrors . fn . call ( this . _processErrors . scope , statement , msgId , msgArgs , this . errorContext ) ; } else { if ( ! msgArgs ) { msgArgs = [ ] ; } if ( ! this . errors ) { this . errors = this . logErrors ? true : [ ] ; } msgArgs . push ( statement . lineNumber ) ; this . errors . push ( { msgId : msgId , msgArgs : msgArgs , errorContext : this . errorContext } ) ; } }
Log an error calling the error callback defined in the constructor.
@param {aria.templates.TreeBeans:Statement} statement Statement generating the error
@param {String} msgId Message to be logged
@param {Array} msgArgs List of error parameters as in jsObject.$logError
Log an error calling the error callback defined in the constructor .